summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-09-28 14:51:21 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-09-28 14:51:21 (GMT)
commitc8b99a9b0a10541503f3e5b49b016862c7bc3ae5 (patch)
tree249c0b51b3608d4c65e80bcca0346280f20ff9be /tools
parent8b533a7564c634e6e7228c5e02832d55513777b5 (diff)
parent9caae83e1f2b9c56ee86b8523391e6a83ea724c5 (diff)
downloadQt-c8b99a9b0a10541503f3e5b49b016862c7bc3ae5.zip
Qt-c8b99a9b0a10541503f3e5b49b016862c7bc3ae5.tar.gz
Qt-c8b99a9b0a10541503f3e5b49b016862c7bc3ae5.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: QDeclarativeDebugClient: Fix gcc warning QmlDebugService: Check that there is a receiver before sending messages If a type is registered under several names, share the attached property object QmlViewer: Fix typo in comment QmlViewer: Fix assert on exit (Windows) QDeclarativeDebugService: Add bc autotest Make QmlDebug protocol more robust Minimize parameter changes on glyph cache textures Only set maskTexture sampler uniform once Only repopulate the glyph cache when we know something could have changed Remove unnecessary attribute changes Invalidate QStaticText coord cache when texture size changes
Diffstat (limited to 'tools')
-rw-r--r--tools/qml/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp
index 78cd64d..00d43c1 100644
--- a/tools/qml/main.cpp
+++ b/tools/qml/main.cpp
@@ -89,6 +89,9 @@ QString warnings;
void showWarnings()
{
if (!warnings.isEmpty()) {
+ int argc = 0; char **argv = 0;
+ QApplication application(argc, argv); // QApplication() in main has been destroyed already.
+ Q_UNUSED(application)
QMessageBox::warning(0, QApplication::tr("Qt QML Viewer"), warnings);
}
}
@@ -516,7 +519,7 @@ int main(int argc, char ** argv)
#if defined (Q_OS_WIN)
// Debugging output is not visible by default on Windows -
- // therefore show modal dialog with errors instad.
+ // therefore show modal dialog with errors instead.
atexit(showWarnings);
#endif