summaryrefslogtreecommitdiffstats
path: root/smglobals.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-10-16 12:47:49 +0200
committerArno <am@disconnect.de>2010-10-16 12:47:49 +0200
commitf10a0a63e699288f1288c193c49795cae9cb3b40 (patch)
treea4bd7c83440223a2eeec787f8f50c070e34fbe72 /smglobals.h
parent101cc9ec266a2d3b5168ab5053efbf868be7e25b (diff)
downloadSheMov-f10a0a63e699288f1288c193c49795cae9cb3b40.tar.gz
SheMov-f10a0a63e699288f1288c193c49795cae9cb3b40.tar.bz2
SheMov-f10a0a63e699288f1288c193c49795cae9cb3b40.zip
Created general purpose HoverWidget
This commit outsources the HoverWindow to a seperate file and makes it possible to set a pixmap to the window. Also the cursor offset is only calculated once in SmGlobals.
Diffstat (limited to 'smglobals.h')
-rw-r--r--smglobals.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/smglobals.h b/smglobals.h
index 50db16a..e1683ee 100644
--- a/smglobals.h
+++ b/smglobals.h
@@ -20,6 +20,7 @@ class SmGlobals : public QObject {
static SmGlobals *instance();
QAbstractItemModel *model(const QString &which);
PictureViewer *pictureViewer();
+ int cursorOffset();
private:
SmGlobals();
@@ -28,6 +29,7 @@ class SmGlobals : public QObject {
static SmGlobals *mInstance;
QHash<QString, QAbstractItemModel*> mModels;
PictureViewer *mPictureViewer;
+ int mCursorOffset;
};
#endif