diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-07-23 00:48:14 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-07-23 00:48:14 +0200 |
commit | bf38021937a555249905d38cda0d4ea5fbc43fb3 (patch) | |
tree | c3b52577c1e0a1861330ff3312662148c96150aa /application/widgets/WideBar.h | |
parent | 1e5b595923090bd19f4e5a04a5055b23e1e8678a (diff) | |
download | MultiMC-bf38021937a555249905d38cda0d4ea5fbc43fb3.tar MultiMC-bf38021937a555249905d38cda0d4ea5fbc43fb3.tar.gz MultiMC-bf38021937a555249905d38cda0d4ea5fbc43fb3.tar.lz MultiMC-bf38021937a555249905d38cda0d4ea5fbc43fb3.tar.xz MultiMC-bf38021937a555249905d38cda0d4ea5fbc43fb3.zip |
NOISSUE improve toolbars
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; +}; |