mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Format code using clang-format
This commit is contained in:
@ -12,7 +12,7 @@ class YACReaderMacOSXSearchLineEdit : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
YACReaderMacOSXSearchLineEdit();
|
||||
void * getNSTextField();
|
||||
void *getNSTextField();
|
||||
|
||||
public slots:
|
||||
QString text();
|
||||
@ -22,8 +22,7 @@ public slots:
|
||||
void setEnabled(bool enabled);
|
||||
|
||||
private:
|
||||
void * nstextfield;
|
||||
|
||||
void *nstextfield;
|
||||
|
||||
signals:
|
||||
//convenience signal for YACReaderLibrary search edit
|
||||
@ -34,30 +33,29 @@ class MacToolBarItemWrapper : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MacToolBarItemWrapper(QAction * action, QMacToolBarItem * toolbaritem);
|
||||
MacToolBarItemWrapper(QAction *action, QMacToolBarItem *toolbaritem);
|
||||
|
||||
public slots:
|
||||
void actionToggled(bool toogled);
|
||||
|
||||
private:
|
||||
QAction * action;
|
||||
QMacToolBarItem * toolbaritem;
|
||||
QAction *action;
|
||||
QMacToolBarItem *toolbaritem;
|
||||
|
||||
void updateIcon(bool checked);
|
||||
};
|
||||
|
||||
|
||||
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 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 addWidget(QWidget *widget);
|
||||
void show();
|
||||
void hide();
|
||||
QMap<QString, QAction *> actions;
|
||||
@ -66,22 +64,20 @@ public:
|
||||
//convenience method for YACReaderLibrary search edit
|
||||
YACReaderMacOSXSearchLineEdit *addSearchEdit();
|
||||
//convenience method for showing the fit to width slider in MacOSX
|
||||
QAction * addFitToWidthSlider(QAction * attachToAction);
|
||||
|
||||
QAction *addFitToWidthSlider(QAction *attachToAction);
|
||||
|
||||
//convenience method for switching the icon of the view selector
|
||||
void updateViewSelectorIcon(const QIcon & icon);
|
||||
void updateViewSelectorIcon(const QIcon &icon);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
protected:
|
||||
NSToolbar * nativeToolBar;
|
||||
NSToolbar *nativeToolBar;
|
||||
void *delegate;
|
||||
bool yosemite;
|
||||
QMacToolBarItem * viewSelector;
|
||||
|
||||
QMacToolBarItem *viewSelector;
|
||||
};
|
||||
|
||||
#endif // YACREADER_MACOSX_TOOLBAR_H
|
||||
|
Reference in New Issue
Block a user