diff options
author | Morten Johan Sørvig <morten.sorvig@theqtcompany.com> | 2015-06-29 14:29:17 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2015-06-29 12:37:32 +0000 |
commit | e5d9584b630425fcdac3bd9c5c91f49b47859692 (patch) | |
tree | 1b33a7195ed5d2185ae8ebc0e7693b8237bfd42f /tests/manual/highdpi/main.cpp | |
parent | 7364a32ba6d27d64562d7423675b4fe7b6d9e000 (diff) |
Fonts manual test: print useful text.
Mention if this is point or pixel sized text.
Change-Id: I9996bca8370e2822a14e8090b64da2d21b40e98e
Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'tests/manual/highdpi/main.cpp')
-rw-r--r-- | tests/manual/highdpi/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/highdpi/main.cpp b/tests/manual/highdpi/main.cpp index 436917d952..819425b54f 100644 --- a/tests/manual/highdpi/main.cpp +++ b/tests/manual/highdpi/main.cpp @@ -539,7 +539,7 @@ public: for (int fontSize = 6; fontSize < 18; fontSize += 2) { QFont font; font.setPointSize(fontSize); - QString string = QString(QStringLiteral("%1 The quick brown fox jumped over the lazy Doug.")).arg(fontSize); + QString string = QString(QStringLiteral("This text is in point size %1")).arg(fontSize); painter.setFont(font); painter.drawText(10, y, string); y += (fontSize * 2.5); @@ -550,7 +550,7 @@ public: for (int fontSize = 6; fontSize < 18; fontSize += 2) { QFont font; font.setPixelSize(fontSize); - QString string = QString(QStringLiteral("%1 The quick brown fox jumped over the lazy Doug.")).arg(fontSize); + QString string = QString(QStringLiteral("This text is in pixel size %1")).arg(fontSize); painter.setFont(font); painter.drawText(10, y, string); y += (fontSize * 2.5); |