Skip to content

Commit ba745fd

Browse files
FriedemannKleintQt Cherry-pick Bot
authored andcommitted
Widget gallery example: Output platform
On Linux, it can be helpful to know whether it us using wayland or falling back to xcb. Change-Id: I175f422b9dd35278deb82c63f73989bab46e43bb Reviewed-by: Axel Spoerl <[email protected]> (cherry picked from commit 130ca2a) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
1 parent dc48c11 commit ba745fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/widgets/gallery/widgetgallery.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ void WidgetGallery::updateSystemInfo()
419419
QString systemInfo;
420420
QTextStream str(&systemInfo);
421421
str << "<html><head/><body><h3>Build</h3><p>" << QLibraryInfo::build() << "</p>"
422-
<< "<h3>Operating System</h3><p>" << QSysInfo::prettyProductName() << "</p>"
422+
<< "<h3>Operating System</h3><p>\"" << QSysInfo::prettyProductName() << "\" / "
423+
<< QGuiApplication::platformName() << "</p>"
423424
<< "<h3>Screens</h3><p>High DPI scale factor rounding policy: "
424425
<< highDpiScaleFactorRoundingPolicy() << "</p><ol>";
425426
const auto screens = QGuiApplication::screens();

0 commit comments

Comments
 (0)