From 3129f7d698856fee664e935b704d2d1137bf12ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 19 May 2015 09:19:45 +0200 Subject: [PATCH] Add more information about Screens to supportInformation Now that we have also a name and the refresh rate it makes sense to add a grouping by screen and print out that information. --- workspace.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index 2b28838ebc..2f65a59489 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1457,15 +1457,18 @@ QString Workspace::supportInformation() const support.append(QStringLiteral(" yes\n")); else support.append(QStringLiteral(" no\n")); - support.append(QStringLiteral("Number of Screens: %1\n").arg(screens()->count())); + support.append(QStringLiteral("Number of Screens: %1\n\n").arg(screens()->count())); for (int i=0; icount(); ++i) { const QRect geo = screens()->geometry(i); - support.append(QStringLiteral("Screen %1 Geometry: %2,%3,%4x%5\n") - .arg(i) + support.append(QStringLiteral("Screen %1:\n").arg(i)); + support.append(QStringLiteral("---------\n").arg(i)); + support.append(QStringLiteral("Name: %1\n").arg(screens()->name(i))); + support.append(QStringLiteral("Geometry: %1,%2,%3x%4\n") .arg(geo.x()) .arg(geo.y()) .arg(geo.width()) .arg(geo.height())); + support.append(QStringLiteral("Refresh Rate: %1\n\n").arg(screens()->refreshRate(i))); } support.append(QStringLiteral("\nCompositing\n")); support.append(QStringLiteral( "===========\n"));