summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2012-12-20 10:32:05 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-20 10:47:25 +0100
commitd76d824e437bb858cb599ce81dd1c1b4d497ba5d (patch)
treefad8a3eb725fd34895152d75104f042d37f8f3de
parentcf0ddb6f70e4f20c4fa10df4e36ddcc4afcdc74a (diff)
QmlViewer: Display options on Windows using a non-proportional font.
Change-Id: I7006fdc73c459da0e19e08fbda35905f32f2aebc Reviewed-by: Kai Koehne <kai.koehne@digia.com>
-rw-r--r--tools/qml/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp
index 7e593f67..23ad31a2 100644
--- a/tools/qml/main.cpp
+++ b/tools/qml/main.cpp
@@ -71,7 +71,9 @@ void exitApp(int i)
// Debugging output is not visible by default on Windows -
// therefore show modal dialog with errors instead.
if (!warnings.isEmpty()) {
- QMessageBox::warning(0, QApplication::translate("QDeclarativeViewer", "Qt QML Viewer"), warnings);
+ const QString message = QStringLiteral("<pre>") + warnings + QStringLiteral("</pre>");
+ QMessageBox::warning(0, QApplication::translate("QDeclarativeViewer", "Qt QML Viewer"),
+ message);
}
#endif
exit(i);