MDI: Raise window when we're dragging it

Otherwise it's appearing under others, possibly
This commit is contained in:
Sergio Martins
2021-02-13 16:29:32 +00:00
parent 18d405bdfb
commit 15ff882919

View File

@@ -389,6 +389,12 @@ void StateInternalMDIDragging::onEntry()
{
qCDebug(state) << "StateInternalMDIDragging entered. draggable="
<< q->m_draggable->asWidget();
// Raise the dock widget being dragged
if (auto tb = qobject_cast<TitleBar *>(q->m_draggable->asWidget())) {
if (Frame *f = tb->frame())
f->raise();
}
}
bool StateInternalMDIDragging::handleMouseButtonRelease(QPoint)