Skip to content

Commit 130ca2a

Browse files
Widget gallery example: Output platform
On Linux, it can be helpful to know whether it us using wayland or falling back to xcb. Pick-to: 6.10 Change-Id: I175f422b9dd35278deb82c63f73989bab46e43bb Reviewed-by: Axel Spoerl <[email protected]>
1 parent f91bf4c commit 130ca2a

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)