diff options
Diffstat (limited to 'src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp')
-rw-r--r-- | src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp index fde3f3ef14..75cf14f7ef 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp @@ -40,6 +40,7 @@ PropertyEditorContextObject::PropertyEditorContextObject(QObject *parent) : m_backendValues(0), m_majorVersion(-1), m_minorVersion(-1), + m_majorQtQuickVersion(-1), m_qmlComponent(0), m_qmlContext(0) { @@ -52,6 +53,11 @@ int PropertyEditorContextObject::majorVersion() const } +int PropertyEditorContextObject::majorQtQuickVersion() const +{ + return m_majorQtQuickVersion; +} + void PropertyEditorContextObject::setMajorVersion(int majorVersion) { if (m_majorVersion == majorVersion) @@ -62,6 +68,17 @@ void PropertyEditorContextObject::setMajorVersion(int majorVersion) emit majorVersionChanged(); } +void PropertyEditorContextObject::setMajorQtQuickVersion(int majorVersion) +{ + if (m_majorQtQuickVersion == majorVersion) + return; + + m_majorQtQuickVersion = majorVersion; + + emit majorQtQuickVersionChanged(); + +} + int PropertyEditorContextObject::minorVersion() const { return m_minorVersion; |