mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
34 lines
714 B
C++
34 lines
714 B
C++
#ifndef YACREADER_MACOSX_TOOLBAR_H
|
|
#define YACREADER_MACOSX_TOOLBAR_H
|
|
|
|
#include <QMacToolBar>
|
|
#include <QtWidgets>
|
|
|
|
class YACReaderMacOSXToolbar : public QMacToolBar
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit YACReaderMacOSXToolbar(QObject *parent = 0);
|
|
void addAction(QAction * action);
|
|
void addDropDownItem(const QList<QAction*> & actions, const QAction * defaultAction = 0);
|
|
void addSpace(int size); //size in points
|
|
void addSeparator();
|
|
void addStretch();
|
|
void addWidget(QWidget * widget);
|
|
void show();
|
|
void hide();
|
|
QMap<QString, QAction *> actions;
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
protected:
|
|
NSToolbar * nativeToolBar;
|
|
void *delegate;
|
|
|
|
|
|
};
|
|
|
|
#endif // YACREADER_MACOSX_TOOLBAR_H
|