diff options
Diffstat (limited to 'tools/qml')
-rw-r--r-- | tools/qml/main.cpp | 4 |
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); |