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.
This commit is contained in:
parent
e904e4fd32
commit
3129f7d698
1 changed files with 6 additions and 3 deletions
|
@ -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; i<screens()->count(); ++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"));
|
||||
|
|
Loading…
Reference in a new issue