From c3b7144f5aef2906d85339d3b9c5bf8eaa3a6356 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 11 Dec 2010 13:06:20 +0100 Subject: Implement hover over movies What started as an attempt to show a frame from a movie when hovering over it, ended in a huge bugfix commit for hover related stuff. This commit is definitely not atomic. When hovering over a movie present on the filesytem a frame is shown. The time frame is configurable. While digging into the code I noticed some bugs. Bugfixes: * fix label for hove archive action. It was labeled for hovering over directories in FSWidget. * Hovering over directories didn't have an action. Also read the appropriate value from QSettings. Other: * add icons for hovering over directories and hovering over movies * replace SheMov::toggleHover(pics|some other) with a QSignalMapper --- filestreewidget.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'filestreewidget.h') diff --git a/filestreewidget.h b/filestreewidget.h index a0c9c2f..7353a52 100644 --- a/filestreewidget.h +++ b/filestreewidget.h @@ -75,9 +75,11 @@ class FilesTreeView : public QTreeView { private: bool exitHover(bool exitVal = true); + void doHover(const QModelIndex &idx); QModelIndex mCurHover; HoverWindow *mHoverWin; - bool mHover; + bool mHoverPics; + bool mHoverMovies; }; class FilesTreeSortModel : public QSortFilterProxyModel { -- cgit v1.2.3-70-g09d2