summaryrefslogtreecommitdiff
path: root/examples/webkitqml/shared/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webkitqml/shared/main.cpp')
-rw-r--r--examples/webkitqml/shared/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/webkitqml/shared/main.cpp b/examples/webkitqml/shared/main.cpp
index c77a22b..ac1de3e 100644
--- a/examples/webkitqml/shared/main.cpp
+++ b/examples/webkitqml/shared/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
@@ -43,7 +43,7 @@ int main(int argc, char* argv[])
{
QGuiApplication app(argc,argv);
QQuickView view;
- view.setSource(QUrl::fromLocalFile(QCoreApplication::applicationDirPath() + QLatin1String("/" QWEBKIT_EXAMPLE_NAME ".qml")));
+ view.setSource(QUrl("qrc:///"QWEBKIT_EXAMPLE_NAME".qml"));
view.setResizeMode(QQuickView::SizeRootObjectToView);
view.show();
return app.exec();