don't cut broeders for tooltips
This commit is contained in:
parent
daef7975e1
commit
e571a8ea6e
@ -171,7 +171,7 @@ void DialogPrivate::checkBorders(bool updateMaskIfNeeded)
|
|||||||
qreal bottomHeight(0);
|
qreal bottomHeight(0);
|
||||||
|
|
||||||
//decide about disabling the border attached to the panel
|
//decide about disabling the border attached to the panel
|
||||||
if (applet) {
|
if (applet && !(q->windowFlags() & Qt::ToolTip)) {
|
||||||
background->getMargins(leftWidth, topHeight, rightWidth, bottomHeight);
|
background->getMargins(leftWidth, topHeight, rightWidth, bottomHeight);
|
||||||
|
|
||||||
switch (applet->location()) {
|
switch (applet->location()) {
|
||||||
@ -223,7 +223,7 @@ void DialogPrivate::checkBorders(bool updateMaskIfNeeded)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//decide if to disable the other borders
|
//decide if to disable the other borders
|
||||||
if (q->isVisible()) {
|
if (q->isVisible() && !(q->windowFlags() & Qt::ToolTip)) {
|
||||||
if (dialogGeom.left() <= avail.left()) {
|
if (dialogGeom.left() <= avail.left()) {
|
||||||
borders &= ~FrameSvg::LeftBorder;
|
borders &= ~FrameSvg::LeftBorder;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user