qtdiag: Add new capabilities/style hints for Qt 5.5.
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Thu, 11 Jun 2015 06:30:09 +0000 (08:30 +0200)
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Thu, 11 Jun 2015 08:34:41 +0000 (08:34 +0000)
Change-Id: I88bd49fb6b426a061f24b759cfa17553bfa90a3c
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
src/qtdiag/qtdiag.cpp

index 6af3ecc..d4e2575 100644 (file)
@@ -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();