diff options
author | Arno <arno@disconnect.de> | 2018-04-03 09:11:25 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-04-03 09:11:25 +0200 |
commit | 0d2eb533f18dbd2330f5bd48b6a154a3c87b84d2 (patch) | |
tree | 6f471c93aabda83662934f30218cb658f9e30efa /smglobals.h | |
parent | bac6fe431150bb5706fe0fb349e753b8fe08c12e (diff) | |
download | SheMov-0d2eb533f18dbd2330f5bd48b6a154a3c87b84d2.tar.gz SheMov-0d2eb533f18dbd2330f5bd48b6a154a3c87b84d2.tar.bz2 SheMov-0d2eb533f18dbd2330f5bd48b6a154a3c87b84d2.zip |
Add a menu with global actions to SmGlobals
Use it in the toolbar for FSWidge and hide the menuBar.
Change Helper::icon to accept different foreground colors and wether to
draw the ellipse.
Diffstat (limited to 'smglobals.h')
-rw-r--r-- | smglobals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/smglobals.h b/smglobals.h index 0ac20ac..c4eb6c3 100644 --- a/smglobals.h +++ b/smglobals.h @@ -18,6 +18,7 @@ class PictureViewer2; class QPixmap; class SeriesTreeWidget; class ArchiveController; +class QAction; // this was: 4707319808 - 20 * 1024 *1024 #define DVDSIZE 4686348288 @@ -44,6 +45,8 @@ class SmGlobals : public QObject { QHash<int, QString> filetypeMap() const { return mFiletypeMap; } void registerWidget(const QString &name, QWidget *w); QWidget *getRegisteredWidget(const QString &name); + void setGlobalAction(QAction *a) { mGlobalActions = a; } + QAction *globalAction() { return mGlobalActions; } QStringList reencReasons() const { return mReencReasons; } void setReencReasons(const QStringList reasons); @@ -61,6 +64,7 @@ class SmGlobals : public QObject { QHash<int, QString> mFiletypeMap; QHash<QString, QWidget*> mWidgets; QStringList mReencReasons; + QAction *mGlobalActions; }; #endif |