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. --- hoverwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hoverwindow.cpp') diff --git a/hoverwindow.cpp b/hoverwindow.cpp index b478879..4bfdae4 100644 --- a/hoverwindow.cpp +++ b/hoverwindow.cpp @@ -61,6 +61,7 @@ void HoverWindow::setContent(const QString &parent, const QStringList &children) mLabel->setText(curText); setMinimumSize(doc.size().width() + 10, doc.size().height() + 10); setMaximumSize(doc.size().width() + 10, doc.size().height() + 10); + raise(); } void HoverWindow::setPixmap(const QPixmap &pm, bool scale){ @@ -77,6 +78,7 @@ void HoverWindow::setPixmap(const QPixmap &pm, bool scale){ mLabel->setPixmap(curPm); setMaximumSize(curPm.width() + 10, curPm.height() + 10); setMinimumSize(curPm.width() + 10, curPm.height() + 10); + raise(); } void HoverWindow::setData(const QList &data){ -- cgit v1.2.3-70-g09d2