From e571a8ea6e01a527fff1c2efec16a2107f5a446d Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 12 Jul 2012 11:14:14 +0200 Subject: [PATCH] don't cut broeders for tooltips --- dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dialog.cpp b/dialog.cpp index e192bd90d..d88fce831 100644 --- a/dialog.cpp +++ b/dialog.cpp @@ -171,7 +171,7 @@ void DialogPrivate::checkBorders(bool updateMaskIfNeeded) qreal bottomHeight(0); //decide about disabling the border attached to the panel - if (applet) { + if (applet && !(q->windowFlags() & Qt::ToolTip)) { background->getMargins(leftWidth, topHeight, rightWidth, bottomHeight); switch (applet->location()) { @@ -223,7 +223,7 @@ void DialogPrivate::checkBorders(bool updateMaskIfNeeded) } //decide if to disable the other borders - if (q->isVisible()) { + if (q->isVisible() && !(q->windowFlags() & Qt::ToolTip)) { if (dialogGeom.left() <= avail.left()) { borders &= ~FrameSvg::LeftBorder; }