mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 23:52:31 -06:00
Change "Select Graphs" from QToolButton to QComboBox
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#define SPEEDWIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QComboBox>
|
||||
#include <QtConcurrentRun>
|
||||
|
||||
#include "speedplotview.h"
|
||||
@@ -37,12 +38,22 @@
|
||||
class QVBoxLayout;
|
||||
class QHBoxLayout;
|
||||
class QLabel;
|
||||
class QComboBox;
|
||||
class QToolButton;
|
||||
class QMenu;
|
||||
class QSignalMapper;
|
||||
class PropertiesWidget;
|
||||
|
||||
class ComboBoxMenuButton : public QComboBox
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ComboBoxMenuButton(QWidget *parent, QMenu *menu);
|
||||
virtual void showPopup();
|
||||
|
||||
private:
|
||||
QMenu *m_menu;
|
||||
};
|
||||
|
||||
|
||||
class SpeedWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -66,7 +77,7 @@ private:
|
||||
QComboBox *m_periodCombobox;
|
||||
SpeedPlotView *m_plot;
|
||||
|
||||
QToolButton *m_graphsButton;
|
||||
ComboBoxMenuButton *m_graphsButton;
|
||||
QMenu *m_graphsMenu;
|
||||
QList<QAction *> m_graphsMenuActions;
|
||||
QSignalMapper *m_graphsSignalMapper;
|
||||
|
||||
Reference in New Issue
Block a user