diff options
author | Arno <am@disconnect.de> | 2010-10-16 12:47:49 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-10-16 12:47:49 +0200 |
commit | f10a0a63e699288f1288c193c49795cae9cb3b40 (patch) | |
tree | a4bd7c83440223a2eeec787f8f50c070e34fbe72 /seriestreewidget.h | |
parent | 101cc9ec266a2d3b5168ab5053efbf868be7e25b (diff) | |
download | SheMov-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 'seriestreewidget.h')
-rw-r--r-- | seriestreewidget.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/seriestreewidget.h b/seriestreewidget.h index 4532ddb..c5d91d4 100644 --- a/seriestreewidget.h +++ b/seriestreewidget.h @@ -22,9 +22,10 @@ class QLabel; class SeriesTreeModel; class SeriesTreeView; class SeriesTreeSortModel; -class SeriesTreeHoverWindow; +class HoverWindow; class FilesTreeModel; class AddCoverDialog; +class HoverWindow; class SeriesTreeWidget : public QWidget { Q_OBJECT @@ -77,19 +78,9 @@ class SeriesTreeView : public QTreeView { private: QStringList children(const QModelIndex &idx) const; QModelIndex mCurHover; - SeriesTreeHoverWindow *mHoverWin; - int mCursorOffset; + HoverWindow *mHoverWin; }; -class SeriesTreeHoverWindow : public QWidget { - Q_OBJECT - public: - explicit SeriesTreeHoverWindow(QWidget *parent = 0, Qt::WindowFlags f = Qt::FramelessWindowHint); - void setContent(const QString &parent, const QStringList &children); - - private: - QLabel *mLabel; -}; class SeriesTreeSortModel : public QSortFilterProxyModel { Q_OBJECT |