From 6c97f7d9eef744ce1da03f4d203af2307b08f6eb Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 18 Mar 2012 03:13:06 +0100 Subject: 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. --- filestreewidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'filestreewidget.cpp') 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){ -- cgit v1.2.3-70-g09d2