summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/snippets/qtbinding/custompalette/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/declarative/snippets/qtbinding/custompalette/main.cpp')
-rw-r--r--doc/src/declarative/snippets/qtbinding/custompalette/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/declarative/snippets/qtbinding/custompalette/main.cpp b/doc/src/declarative/snippets/qtbinding/custompalette/main.cpp
index c723688..dc651f6 100644
--- a/doc/src/declarative/snippets/qtbinding/custompalette/main.cpp
+++ b/doc/src/declarative/snippets/qtbinding/custompalette/main.cpp
@@ -53,7 +53,7 @@ int main(int argc, char *argv[])
QDeclarativeView view;
view.rootContext()->setContextProperty("palette", new CustomPalette);
- view.setSource(QUrl("main.qml"));
+ view.setSource(QUrl::fromLocalFile("main.qml"));
view.show();
return app.exec();