MultiMC5/application/widgets/WideBar.h
2019-07-23 01:05:23 +02:00

21 lines
383 B
C++

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