summaryrefslogtreecommitdiffstats
path: root/hoverwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hoverwindow.cpp')
-rw-r--r--hoverwindow.cpp2
1 files changed, 2 insertions, 0 deletions
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<QVariant> &data){