forked from qt-creator/qt-creator
Core: Add a default parameter to various ICore::*path functions
Saves some code on the user side. Change-Id: I32cd220b6e533f5497a1865f9c34ab9db4cfda79 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -66,9 +66,7 @@ void ExampleCheckout::checkoutExample(const QUrl &url)
|
||||
widget->engine()->addImportPath("qrc:/studiofonts");
|
||||
|
||||
widget->engine()->addImportPath(
|
||||
Core::ICore::resourcePath()
|
||||
.pathAppended("/qmldesigner/propertyEditorQmlSources/imports")
|
||||
.toString());
|
||||
Core::ICore::resourcePath("/qmldesigner/propertyEditorQmlSources/imports").toString());
|
||||
|
||||
widget->setSource(QUrl("qrc:/qml/downloaddialog/main.qml"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user