summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@theqtcompany.com>2015-04-08 17:13:50 +0200
committerAndras Becsi <andras.becsi@theqtcompany.com>2015-04-09 07:33:56 +0000
commitfc928adbd660f85fa5592b6a1800976638f3e452 (patch)
tree3ffe59420c1b88fcc8f9c7f6f1e998d92198121b
parent7cd8029e08d4520421944534f058cdfc3fef11d9 (diff)
downloadqtquickcontrols-fc928adbd660f85fa5592b6a1800976638f3e452.tar.gz
Revert "Fix qrc path prefix in flatstyleplugin"
This was incorrectly based on an outdated version and caused "qmlRegisterType requires absolute URLs" errors when the plugin was loaded. Change-Id: If106e542d80f44d8acac7501271409f0ecfa8c3e Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
-rw-r--r--src/extras/Styles/Flat/flatstyleplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extras/Styles/Flat/flatstyleplugin.cpp b/src/extras/Styles/Flat/flatstyleplugin.cpp
index ec3000be..db464c38 100644
--- a/src/extras/Styles/Flat/flatstyleplugin.cpp
+++ b/src/extras/Styles/Flat/flatstyleplugin.cpp
@@ -71,7 +71,7 @@ void QtQuickExtrasStylesPlugin::registerTypes(const char *uri)
{
Q_INIT_RESOURCE(flatstyle);
- const QString prefix = ":/ExtrasImports/QtQuick/Controls/Styles/Flat/";
+ const QString prefix = "qrc:/ExtrasImports/QtQuick/Controls/Styles/Flat/";
// register version 1.0
qmlRegisterSingletonType(QUrl(prefix + "FlatStyle.qml"), uri, 1, 0, "FlatStyle");
qmlRegisterType(QUrl(prefix + "ApplicationWindowStyle.qml"), uri, 1, 0, "ApplicationWindowStyle");