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:
Sebastian Kügler 2013-12-17 01:10:58 +01:00
parent d9a4c3e0eb
commit 714042904f

View File

@ -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();