OSDN Git Service

QmlDesigner.propertyEditor: cache QtQuick items instead of Qt
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Mon, 4 Oct 2010 13:38:29 +0000 (15:38 +0200)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>
Mon, 4 Oct 2010 13:38:29 +0000 (15:38 +0200)
Fixes caching for Qt Quick items.
Also the emptyPane is found again.

Reviewed-by: Kai Koehne
src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp

index 97273b7..2483215 100644 (file)
@@ -716,10 +716,10 @@ void PropertyEditor::modelAttached(Model *model)
 
     m_locked = true;
 
-    setupPane("Qt/Rectangle");
-    setupPane("Qt/Text");
-    setupPane("Qt/TextInput");
-    setupPane("Qt/TextEdit");
+    setupPane("QtQuick/Rectangle");
+    setupPane("QtQuick/Text");
+    setupPane("QtQuick/TextInput");
+    setupPane("QtQuick/TextEdit");
     resetView();
 
     m_locked = false;
@@ -895,7 +895,7 @@ QUrl PropertyEditor::qmlForNode(const ModelNode &modelNode, QString &className)
             }
         }
     }
-    return fileToUrl(QDir(m_qmlDir).filePath("Qt/emptyPane.qml"));
+    return fileToUrl(QDir(m_qmlDir).filePath("QtQuick/emptyPane.qml"));
 }
 
 QString PropertyEditor::locateQmlFile(const QString &relativePath) const