Android: Don't assume native window decoration in QDockWidget

Android does not decorate a floating QDockWidget, leaving the user with
no option to close or move such a widget. This changes activates Qt's
own drawing of window decorations for this case (similar to Win CE).

[ChangeLog][Android][QtWidgets] Enable QDockWidget window decorations.

Change-Id: Id46a994a8be9b8f3e7b530af118315cd36b5fb0e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
bb10
Kai Pastor 2014-12-22 08:54:10 +01:00
parent 936b671332
commit 82413cd35f
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ static bool isXcb()
bool QDockWidgetLayout::nativeWindowDeco(bool floating) const
{
#ifdef Q_OS_WINCE
#if defined(Q_OS_WINCE) || defined(Q_OS_ANDROID)
return false;
#else
return !isXcb() && (floating && item_list[QDockWidgetLayout::TitleBar] == 0);