QDockWidget: Enable framestrut events when undocked by doubleclick.
Task-number: QTBUG-26296 Change-Id: I2821a99add238d2a2cb5b6788d689a48e050e74a Reviewed-by: Markku Tapio Heikkilä <markku.heikkila@digia.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
00d78dac2f
commit
a186d2f2ed
@ -1052,7 +1052,7 @@ void QDockWidgetPrivate::setWindowState(bool floating, bool unplug, const QRect
|
||||
}
|
||||
}
|
||||
|
||||
if (unplug && floating && nativeDeco)
|
||||
if (floating && nativeDeco)
|
||||
if (const QWindow *window = q->windowHandle())
|
||||
if (QPlatformWindow *platformWindow = window->handle())
|
||||
platformWindow->setFrameStrutEventsEnabled(true);
|
||||
|
Loading…
Reference in New Issue
Block a user