added the basic methods to YACRreaderMacOSXToolbar, some of them have been implemented succesfully. Tested in YACReader

This commit is contained in:
Luis Ángel San Martín
2014-11-04 00:01:54 +01:00
parent bd0dbd91f1
commit 039378457d
6 changed files with 148 additions and 38 deletions

View File

@ -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