Skip to content

Commit

Permalink
prefer local qml over qrc
Browse files Browse the repository at this point in the history
  • Loading branch information
rburchell committed Sep 17, 2011
1 parent be23877 commit d761aa0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/mainwindow.cpp
Expand Up @@ -62,7 +62,13 @@ MainWindow::MainWindow(QWidget *parent) :
#endif

excludeFromTaskBar();
setSource(QUrl("qrc:/qml/main.qml"));

// TODO: disable this for non-debug builds
if (QFile::exists("main.qml"))
setSource(QUrl::fromLocalFile("./main.qml"));
else
setSource(QUrl("qrc:/qml/main.qml"));

setResizeMode(SizeRootObjectToView);

setAttribute(Qt::WA_OpaquePaintEvent);
Expand Down

0 comments on commit d761aa0

Please sign in to comment.