summaryrefslogtreecommitdiffstats
path: root/tools/qml/main.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-01-09 12:15:59 +0100
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2013-01-17 12:44:43 +0100
commit3146dcbdc768c90a03b58eed3f42630604443093 (patch)
tree10e234460c5f57012b346cdbe6304002ad0a446d /tools/qml/main.cpp
parenta7ea2afffd61e2a89f7bb2c586b4b733c4996bb5 (diff)
parent722725cf24e45e86a2844810b90787a29df8a4a9 (diff)
Merge branch 'stable' into dev
Conflicts: sync.profile tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp Change-Id: I3620d15b4163fec420d18f6be50cae1635b99a2f
Diffstat (limited to 'tools/qml/main.cpp')
-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);