summaryrefslogtreecommitdiffstats
path: root/globals.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-11-27 06:52:50 +0100
committerArno <arno@disconnect.de>2016-11-27 06:52:50 +0100
commit9c89e2f83415c876f28f15ebff31c8325754a936 (patch)
tree81262fcd178af3071187cf89b415fc70cdb8d977 /globals.h
parentd1cf6c418855004a249d44fd383c889cbd1e7662 (diff)
downloadShemovCleaner-9c89e2f83415c876f28f15ebff31c8325754a936.tar.gz
ShemovCleaner-9c89e2f83415c876f28f15ebff31c8325754a936.tar.bz2
ShemovCleaner-9c89e2f83415c876f28f15ebff31c8325754a936.zip
Add picture viewer
Opens on doubleclick when it's image/*.
Diffstat (limited to 'globals.h')
-rw-r--r--globals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/globals.h b/globals.h
index f659088..e0bc5ef 100644
--- a/globals.h
+++ b/globals.h
@@ -5,6 +5,7 @@
#include <QHash>
class QAction;
+class Viewer;
class Globals : public QObject {
Q_OBJECT
@@ -13,6 +14,7 @@ class Globals : public QObject {
static Globals *instance();
void addAction(QAction *a);
QAction *action(int actionType);
+ Viewer *viewer();
private:
Globals();
@@ -20,6 +22,7 @@ class Globals : public QObject {
Globals &operator=(const Globals &other);
static Globals *mInstance;
QHash<int, QAction*> mActions;
+ Viewer *mViewer;
};
#endif // GLOBALS_H