mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 08:10:11 +00:00
21 lines
383 B
C++
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;
|
|
};
|