summaryrefslogtreecommitdiff
path: root/src/extras
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@theqtcompany.com>2015-03-17 16:47:30 +0100
committerAndras Becsi <andras.becsi@theqtcompany.com>2015-03-17 16:42:46 +0000
commitda508d99d50d27bd234c85dae5f069a1eb26103d (patch)
treec6867b591f57b131167952e69db9145c2c8d9e47 /src/extras
parent8737265ef6caec356c243ae3be7d12d76a50e891 (diff)
downloadqtquickcontrols-da508d99d50d27bd234c85dae5f069a1eb26103d.tar.gz
Fix qrc path prefix in flatstyleplugin
The prefix should start with ':/' instead of 'qrc:/'. This fixes 'File not found' errors when using this style. Change-Id: Ie49e009fcf935d9bbb5f9ea9fb8e17d4766f270e Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/extras')
-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 db464c38..ec3000be 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 = "qrc:/ExtrasImports/QtQuick/Controls/Styles/Flat/";
+ const QString prefix = ":/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");