diff options
Diffstat (limited to 'application/widgets/WideBar.h')
-rw-r--r-- | application/widgets/WideBar.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/application/widgets/WideBar.h b/application/widgets/WideBar.h index e5a1a737..d1b8cbe7 100644 --- a/application/widgets/WideBar.h +++ b/application/widgets/WideBar.h @@ -4,6 +4,8 @@ #include <QAction> #include <QMap> +class QMenu; + class WideBar : public QToolBar { Q_OBJECT @@ -11,10 +13,14 @@ class WideBar : public QToolBar public: explicit WideBar(const QString &title, QWidget * parent = nullptr); explicit WideBar(QWidget * parent = nullptr); + virtual ~WideBar(); void addAction(QAction *action); + void addSeparator(); void insertSpacer(QAction *action); + QMenu *createContextMenu(QWidget *parent = nullptr, const QString & title = QString()); private: - QMap<QAction *, QAction *> m_actionMap; + struct BarEntry; + QList<BarEntry *> m_entries; }; |