summaryrefslogtreecommitdiffstats
path: root/fileview.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-12-17 11:59:27 +0100
committerArno <am@disconnect.de>2010-12-17 11:59:27 +0100
commit4f64bd4ee5b465fe64237500b32b03f286dd7faf (patch)
tree362f9b8a1e5d36d797ca257713eb33d0f9376a7f /fileview.h
parent4a42f4f8a8e5e0b0378f9514b317648107c238cc (diff)
downloadSheMov-4f64bd4ee5b465fe64237500b32b03f286dd7faf.tar.gz
SheMov-4f64bd4ee5b465fe64237500b32b03f286dd7faf.tar.bz2
SheMov-4f64bd4ee5b465fe64237500b32b03f286dd7faf.zip
Fix hover in FileSystemWidget
Hover over movies in FileSystemWidget. Make it stick to the selected hover options.
Diffstat (limited to 'fileview.h')
-rw-r--r--fileview.h10
1 files changed, 8 insertions, 2 deletions
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