From 0d2eb533f18dbd2330f5bd48b6a154a3c87b84d2 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 3 Apr 2018 09:11:25 +0200 Subject: 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. --- smglobals.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'smglobals.h') 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 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 mFiletypeMap; QHash mWidgets; QStringList mReencReasons; + QAction *mGlobalActions; }; #endif -- cgit v1.2.3-70-g09d2