mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 23:44:52 -04:00
added support for checkable items in nstoolbar //TODO find a better UI desing?
This commit is contained in:
@ -29,6 +29,23 @@ signals:
|
||||
void filterChanged(YACReader::SearchModifiers, QString);
|
||||
};
|
||||
|
||||
class MacToolBarItemWrapper : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MacToolBarItemWrapper(QAction * action, QMacToolBarItem * toolbaritem);
|
||||
|
||||
public slots:
|
||||
void actionToggled(bool toogled);
|
||||
|
||||
private:
|
||||
QAction * action;
|
||||
QMacToolBarItem * toolbaritem;
|
||||
|
||||
void updateIcon(bool checked);
|
||||
};
|
||||
|
||||
|
||||
class YACReaderMacOSXToolbar : public QMacToolBar
|
||||
{
|
||||
Q_OBJECT
|
||||
|
Reference in New Issue
Block a user