sync borders after adjusting geometry
This commit is contained in:
parent
0ef526b8df
commit
2e7d295e9e
@ -342,7 +342,7 @@ void DialogPrivate::syncToMainItemSize()
|
|||||||
if (!mainItem) {
|
if (!mainItem) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
syncBorders();
|
|
||||||
const QSize s = QSize(mainItem.data()->width(), mainItem.data()->height()) +
|
const QSize s = QSize(mainItem.data()->width(), mainItem.data()->height()) +
|
||||||
QSize(frameSvgItem->margins()->left() + frameSvgItem->margins()->right(),
|
QSize(frameSvgItem->margins()->left() + frameSvgItem->margins()->right(),
|
||||||
frameSvgItem->margins()->top() + frameSvgItem->margins()->bottom());
|
frameSvgItem->margins()->top() + frameSvgItem->margins()->bottom());
|
||||||
@ -357,6 +357,7 @@ void DialogPrivate::syncToMainItemSize()
|
|||||||
} else {
|
} else {
|
||||||
q->resize(s);
|
q->resize(s);
|
||||||
}
|
}
|
||||||
|
syncBorders();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DialogPrivate::requestSyncToMainItemSize(bool delayed)
|
void DialogPrivate::requestSyncToMainItemSize(bool delayed)
|
||||||
|
Loading…
Reference in New Issue
Block a user