summaryrefslogtreecommitdiffstats
path: root/filestreewidget.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2012-03-18 03:13:06 +0100
committerArno <am@disconnect.de>2012-03-18 03:13:06 +0100
commit6c97f7d9eef744ce1da03f4d203af2307b08f6eb (patch)
tree8079a158f6a12acaa4aef4588a93b513aaa49121 /filestreewidget.cpp
parent3e784fed0148c4ec24aa8b2b8ca53f2d9d9bc543 (diff)
downloadSheMov-6c97f7d9eef744ce1da03f4d203af2307b08f6eb.tar.gz
SheMov-6c97f7d9eef744ce1da03f4d203af2307b08f6eb.tar.bz2
SheMov-6c97f7d9eef744ce1da03f4d203af2307b08f6eb.zip
Fix FrameCache and HoverWindow
Another commit that should be two. While fixing FrameCache to delete invalid Pixmaps, I ventured into the depths of HoverWindow. Now it hides when focus leaves the widget we're hovering over.
Diffstat (limited to 'filestreewidget.cpp')
-rw-r--r--filestreewidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/filestreewidget.cpp b/filestreewidget.cpp
index 6222d99..2fedc33 100644
--- a/filestreewidget.cpp
+++ b/filestreewidget.cpp
@@ -337,8 +337,9 @@ void FilesTreeWidget::itemDoubleClicked(const QModelIndex &index){
}
}
-FilesTreeView::FilesTreeView(QWidget *parent) : QTreeView(parent), mHoverWin(new HoverWindow), mHoverPics(false){
+FilesTreeView::FilesTreeView(QWidget *parent) : QTreeView(parent), mHoverPics(false){
setAttribute(Qt::WA_Hover);
+ mHoverWin = new HoverWindow(this);
}
void FilesTreeView::setModel(QAbstractItemModel *model){