From f10a0a63e699288f1288c193c49795cae9cb3b40 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 16 Oct 2010 12:47:49 +0200 Subject: 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. --- smglobals.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'smglobals.h') 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 mModels; PictureViewer *mPictureViewer; + int mCursorOffset; }; #endif -- cgit v1.2.3-70-g09d2