Abuse flags
Interestingly, this hack yields the correct behaviour in my system. We quickly set the always on top hint once we're supposed to hide, so the window stays on top for the duration of the animation -- without apparent side effects on the positioning and resizability. CCMAIL:mgraesslin@kde.org
This commit is contained in:
parent
d9a4c3e0eb
commit
714042904f
@ -142,6 +142,11 @@ void DialogProxy::setVisible(const bool visible)
|
||||
setGeometry(screen()->availableGeometry());
|
||||
|
||||
} else {
|
||||
// FIXME: abuse of flags
|
||||
// The dialog hiding is animated, keep it raised while it's animating
|
||||
// This seems to be a bit of a hack, but as it works, let's use it for
|
||||
// now and keep looking for a better solution.
|
||||
setFlags(Qt::WindowStaysOnTopHint|m_flags);
|
||||
//syncToMainItemSize();
|
||||
setPosition(popupPosition(m_visualParent.data(), Qt::AlignCenter));
|
||||
syncToMainItemSize();
|
||||
|
Loading…
Reference in New Issue
Block a user