summaryrefslogtreecommitdiffstats
path: root/tools/qml/main.cpp
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@nokia.com>2010-06-21 15:59:23 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2010-06-25 06:41:15 (GMT)
commit156cabe79a64ffca8d6e1a2df99f35b413a48a39 (patch)
tree2c4868d95038c9d6a91ac6d3db269a993ef1feb1 /tools/qml/main.cpp
parent543bbe2e122d1d3394ec589c32f9640d1fd88f3b (diff)
downloadQt-156cabe79a64ffca8d6e1a2df99f35b413a48a39.zip
Qt-156cabe79a64ffca8d6e1a2df99f35b413a48a39.tar.gz
Qt-156cabe79a64ffca8d6e1a2df99f35b413a48a39.tar.bz2
Make the QML viewer usable on the N900
Diffstat (limited to 'tools/qml/main.cpp')
-rw-r--r--tools/qml/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp
index a75023b..de5bca2 100644
--- a/tools/qml/main.cpp
+++ b/tools/qml/main.cpp
@@ -346,7 +346,7 @@ int main(int argc, char ** argv)
if (stayOnTop)
wflags |= Qt::WindowStaysOnTopHint;
- QDeclarativeViewer *viewer = new QDeclarativeViewer(0, wflags);
+ QDeclarativeViewer *viewer = QDeclarativeViewer::instance(0, wflags);
viewer->setAttribute(Qt::WA_DeleteOnClose, true);
if (!scriptopts.isEmpty()) {
QStringList options =