From 4f64bd4ee5b465fe64237500b32b03f286dd7faf Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 17 Dec 2010 11:59:27 +0100 Subject: Fix hover in FileSystemWidget Hover over movies in FileSystemWidget. Make it stick to the selected hover options. --- fileview.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'fileview.h') diff --git a/fileview.h b/fileview.h index 604fa8f..7f35fdc 100644 --- a/fileview.h +++ b/fileview.h @@ -18,12 +18,13 @@ class QModelIndex; class QAction; class HoverWindow; class QEvent; +class QFileInfo; class FileView : public QTreeView { Q_OBJECT public: FileView(QWidget *parent = 0); - ~FileView() {}; + ~FileView() {} signals: void upDir(); @@ -48,13 +49,18 @@ class FileView : public QTreeView { virtual bool event(QEvent *event); private: + enum HoverFileType { Dir, Movie, Image, None }; bool exitHover(bool exitVal = true); + void doHover(const QFileInfo &fi, int type); MessageDialog *mMarkDialog; MessageDialog *mCreateFolderDialog; QAction *mDeleteA; HoverWindow *mHoverWin; QModelIndex mCurHover; - bool mHover; + bool mHoverDirs; + bool mHoverMovies; + bool mHoverPics; + QString mWhen; }; #endif -- cgit v1.2.3-70-g09d2