summaryrefslogtreecommitdiffstats
path: root/application/widgets/WideBar.h
blob: e5a1a737a8e787fc16504ad3b4e771e4f9eba764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <QToolBar>
#include <QAction>
#include <QMap>

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;
};