From 6510c1e18c336c0a2bb0049b44b56acc8ace990d Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 11 Jun 2015 08:30:09 +0200 Subject: [PATCH] qtdiag: Add new capabilities/style hints for Qt 5.5. Change-Id: I88bd49fb6b426a061f24b759cfa17553bfa90a3c Reviewed-by: Joerg Bornemann --- src/qtdiag/qtdiag.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/qtdiag/qtdiag.cpp b/src/qtdiag/qtdiag.cpp index 6af3ecc..d4e2575 100644 --- a/src/qtdiag/qtdiag.cpp +++ b/src/qtdiag/qtdiag.cpp @@ -313,6 +313,7 @@ QString qtDiag(unsigned flags) DUMP_CAPABILITY(str, platformIntegration, SyncState) DUMP_CAPABILITY(str, platformIntegration, RasterGLSurface) DUMP_CAPABILITY(str, platformIntegration, AllGLFunctionsQueryable) + DUMP_CAPABILITY(str, platformIntegration, ApplicationIcon) str << '\n'; const QStyleHints *styleHints = QGuiApplication::styleHints(); @@ -336,7 +337,13 @@ QString qtDiag(unsigned flags) << " fontSmoothingGamma: " << styleHints->fontSmoothingGamma() << '\n' << " useRtlExtensions: " << styleHints->useRtlExtensions() << '\n' << " setFocusOnTouchRelease: " << styleHints->setFocusOnTouchRelease() << '\n' - << " tabFocusBehavior: " << formatQDebug(styleHints->tabFocusBehavior()) << '\n'; + << " tabFocusBehavior: " << formatQDebug(styleHints->tabFocusBehavior()) << '\n' + << " singleClickActivation: " << styleHints->singleClickActivation() << '\n'; + str << "\nAdditional style hints (QPlatformIntegration):\n" + << " ShowIsMaximized: " + << platformIntegration->styleHint(QPlatformIntegration::ShowIsMaximized).toBool() << '\n' + << " ReplayMousePressOutsidePopup: " + << platformIntegration->styleHint(QPlatformIntegration::ReplayMousePressOutsidePopup).toBool() << '\n'; const QPlatformTheme *platformTheme = QGuiApplicationPrivate::platformTheme(); str << "\nTheme:\n Styles: " << platformTheme->themeHint(QPlatformTheme::StyleNames).toStringList(); -- 2.7.4