diff options
author | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2013-09-13 17:06:10 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2013-09-16 13:36:58 +0200 |
commit | dce623b1bf026df0680b359bc8e36ce928e7aea1 (patch) | |
tree | 0fd32e38c7ebcae2491207ad32de6c7d7b54ed87 /src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp | |
parent | cf56178df17db9a4840e52627ec89532c76c41e5 (diff) | |
download | qt-creator-dce623b1bf026df0680b359bc8e36ce928e7aea1.tar.gz |
QmlDesigner: Porting to Qt Quick 2
This patch ports our Qt Quick views to Qt Quick 2.
Change-Id: Ie0cfd81e7ebb76d2ed667211ad063feaaff5aa14
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp')
-rw-r--r-- | src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp index 4f53f2dab6..37fa5bc6df 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp @@ -52,7 +52,8 @@ enum { debug = false }; -const char resourcePropertyEditorPath[] = ":/propertyeditor"; +const char propertyEditorPath[] = "/propertyEditorQmlSources"; +const char resourcePropertyEditorPath[] = ":/propertyEditorQmlSources"; static QmlJS::SimpleReaderNode::Ptr s_templateConfiguration = QmlJS::SimpleReaderNode::Ptr(); @@ -118,7 +119,7 @@ static inline QString sharedDirPath() namespace QmlDesigner { PropertyEditorQmlBackend::PropertyEditorQmlBackend(PropertyEditorView *propertyEditor) : - m_view(new QuickPropertyEditorView), m_propertyEditorTransaction(new PropertyEditorTransaction(propertyEditor)), m_dummyPropertyEditorValue(new PropertyEditorValue()), + m_view(new Quick2PropertyEditorView), m_propertyEditorTransaction(new PropertyEditorTransaction(propertyEditor)), m_dummyPropertyEditorValue(new PropertyEditorValue()), m_contextObject(new PropertyEditorContextObject()) { Q_ASSERT(QFileInfo(":/images/button_normal.png").exists()); @@ -203,7 +204,7 @@ void PropertyEditorQmlBackend::setValue(const QmlObjectNode & qmlObjectNode, con } -QDeclarativeContext *PropertyEditorQmlBackend::context() { +QQmlContext *PropertyEditorQmlBackend::context() { return m_view->rootContext(); } @@ -338,7 +339,7 @@ void PropertyEditorQmlBackend::initialSetup(const TypeName &typeName, const QUrl } QString PropertyEditorQmlBackend::propertyEditorResourcesPath() { - return sharedDirPath() + QLatin1String("/propertyeditor"); + return sharedDirPath() + QLatin1String(propertyEditorPath); } QString PropertyEditorQmlBackend::templateGeneration(NodeMetaInfo type, |