diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2016-01-19 08:25:17 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2016-01-19 07:34:37 +0000 |
commit | e16c94a0df7ebdada0355f50e2becbdbcff15aed (patch) | |
tree | 07b67d9ca7b10e538360f263ecf78f15217fbb16 | |
parent | 05eef60ec3758b4c4d9f3c1cac5f31f7c40d0c4b (diff) | |
download | qttools-e16c94a0df7ebdada0355f50e2becbdbcff15aed.tar.gz |
qtdiag: Output available platform theme names.
Output QPlatformIntegration::themeNames() and align theme-related
output.
Task-number: QTBUG-49095
Change-Id: Ife16456b67eef97734399dc2f46112d6a9929c7f
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
-rw-r--r-- | src/qtdiag/qtdiag.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qtdiag/qtdiag.cpp b/src/qtdiag/qtdiag.cpp index 8bd1448dc..4e9a25f28 100644 --- a/src/qtdiag/qtdiag.cpp +++ b/src/qtdiag/qtdiag.cpp @@ -435,15 +435,17 @@ QString qtDiag(unsigned flags) << platformIntegration->styleHint(QPlatformIntegration::ReplayMousePressOutsidePopup).toBool() << '\n'; const QPlatformTheme *platformTheme = QGuiApplicationPrivate::platformTheme(); - str << "\nTheme:\n Styles: " << platformTheme->themeHint(QPlatformTheme::StyleNames).toStringList(); + str << "\nTheme:" + "\n Available : " << platformIntegration->themeNames() + << "\n Styles : " << platformTheme->themeHint(QPlatformTheme::StyleNames).toStringList(); const QString iconTheme = platformTheme->themeHint(QPlatformTheme::SystemIconThemeName).toString(); if (!iconTheme.isEmpty()) { - str << "\n Icon theme: " << iconTheme + str << "\n Icon theme : " << iconTheme << ", " << platformTheme->themeHint(QPlatformTheme::SystemIconFallbackThemeName).toString() << " from " << platformTheme->themeHint(QPlatformTheme::IconThemeSearchPaths).toStringList() << '\n'; } if (const QFont *systemFont = platformTheme->font()) - str << " System font: " << *systemFont<< '\n'; + str << " System font : " << *systemFont<< '\n'; str << " General font : " << QFontDatabase::systemFont(QFontDatabase::GeneralFont) << '\n' << " Fixed font : " << QFontDatabase::systemFont(QFontDatabase::FixedFont) << '\n' << " Title font : " << QFontDatabase::systemFont(QFontDatabase::TitleFont) << '\n' |