diff options
Diffstat (limited to 'application/widgets/WideBar.h')
-rw-r--r-- | application/widgets/WideBar.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/application/widgets/WideBar.h b/application/widgets/WideBar.h new file mode 100644 index 00000000..38da35d0 --- /dev/null +++ b/application/widgets/WideBar.h @@ -0,0 +1,18 @@ +#pragma once + +#include <QToolBar> + +class WideBar : public QToolBar +{ + Q_OBJECT + +public: + explicit WideBar(const QString &title, QWidget * parent = nullptr); + explicit WideBar(QWidget * parent = nullptr); + + void addAction(QAction *action); + void insertSpacer(QAction *action); + +private: + QMap<QAction *, QAction *> m_actionMap; +}; |