pollymc/application/widgets/WideBar.h
2019-07-23 00:48:14 +02:00

19 lines
348 B
C++

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