Fix wrong QUrl construction from local file

wilder
David Faure 10 years ago
parent 6b349998ed
commit a82ffd5343
  1. 2
      autotests/proxymodeltestapp/selectioninqmlwidget.cpp

@ -54,5 +54,5 @@ SelectionInQmlWidget::SelectionInQmlWidget(QWidget *parent): QWidget(parent)
quickView->engine()->rootContext()->setContextProperty(QStringLiteral("_model"), m_rootModel); quickView->engine()->rootContext()->setContextProperty(QStringLiteral("_model"), m_rootModel);
quickView->engine()->rootContext()->setContextProperty(QStringLiteral("_selectionModel"), selectionTree->selectionModel()); quickView->engine()->rootContext()->setContextProperty(QStringLiteral("_selectionModel"), selectionTree->selectionModel());
quickView->setSource(QUrl(SRC_DIR "/selection.qml")); quickView->setSource(QUrl::fromLocalFile(SRC_DIR "/selection.qml"));
} }

Loading…
Cancel
Save