till sync the item size even without visualparent
This commit is contained in:
parent
ad4fecf426
commit
2eaf80456f
@ -136,13 +136,15 @@ void DialogProxy::onVisibleChanged()
|
|||||||
}
|
}
|
||||||
setPosition(screen()->availableGeometry().topLeft());
|
setPosition(screen()->availableGeometry().topLeft());
|
||||||
setGeometry(screen()->availableGeometry());
|
setGeometry(screen()->availableGeometry());
|
||||||
} else if (m_visualParent) {
|
} else {
|
||||||
if (!m_cachedGeometry.isNull()) {
|
if (!m_cachedGeometry.isNull()) {
|
||||||
resize(m_cachedGeometry.size());
|
resize(m_cachedGeometry.size());
|
||||||
syncMainItemToSize();
|
syncMainItemToSize();
|
||||||
m_cachedGeometry = QRect();
|
m_cachedGeometry = QRect();
|
||||||
}
|
}
|
||||||
setPosition(popupPosition(m_visualParent.data(), Qt::AlignCenter));
|
if (m_visualParent) {
|
||||||
|
setPosition(popupPosition(m_visualParent.data(), Qt::AlignCenter));
|
||||||
|
}
|
||||||
syncToMainItemSize();
|
syncToMainItemSize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user