Windows QPA: Do not return QPlatformIntegration::ShowIsMaximized in tablet mode

The hint is not appropriate for Windows 10 tablet mode as it affects
only main windows. Dialogs should still show up in normal size.

Partially reverts change d377f14fd5b4fe3ed64392c6b743bac395f9f891.

Task-number: QTBUG-58227
Change-Id: If9cf4990eb40913904cd97e17a7622bc6cbe84ca
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
This commit is contained in:
Friedemann Kleint 2017-01-17 10:40:18 +01:00 committed by Jani Heikkinen
parent 1e7ce7aab0
commit 49dc9aa409

View File

@ -512,11 +512,6 @@ QVariant QWindowsIntegration::styleHint(QPlatformIntegration::StyleHint hint) co
return QVariant(keyBoardAutoRepeatRateMS()); return QVariant(keyBoardAutoRepeatRateMS());
#endif #endif
case QPlatformIntegration::ShowIsMaximized: case QPlatformIntegration::ShowIsMaximized:
#ifndef QT_NO_CLIPBOARD
return qt_windowsIsTabletMode(d->m_clipboard.clipboardViewer());
#else
break;
#endif
case QPlatformIntegration::StartDragTime: case QPlatformIntegration::StartDragTime:
case QPlatformIntegration::StartDragDistance: case QPlatformIntegration::StartDragDistance:
case QPlatformIntegration::KeyboardInputInterval: case QPlatformIntegration::KeyboardInputInterval: