mirror of
https://github.com/YACReader/yacreader
synced 2025-07-27 01:15:07 -04:00
added the basic methods to YACRreaderMacOSXToolbar, some of them have been implemented succesfully. Tested in YACReader
This commit is contained in:
@ -2,17 +2,29 @@
|
||||
#define YACREADER_MACOSX_TOOLBAR_H
|
||||
|
||||
#include <QMacToolBar>
|
||||
#include <QtWidgets>
|
||||
|
||||
class YACReaderMacOSXToolbar : public QMacToolBar
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderMacOSXToolbar(QWidget *window, QObject *parent = 0);
|
||||
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();
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
protected:
|
||||
NSToolbar * nativeToolBar;
|
||||
|
||||
};
|
||||
|
||||
#endif // YACREADER_MACOSX_TOOLBAR_H
|
||||
|
Reference in New Issue
Block a user