summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp')
-rw-r--r--src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp
index 10f08b542a..396dac9039 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp
@@ -424,6 +424,20 @@ void PropertyEditorContextObject::setHasMultiSelection(bool b)
emit hasMultiSelectionChanged();
}
+void PropertyEditorContextObject::setInsightEnabled(bool value)
+{
+ if (value != m_insightEnabled) {
+ m_insightEnabled = value;
+ emit insightEnabledChanged();
+ }
+}
+
+void PropertyEditorContextObject::setInsightCategories(const QStringList &categories)
+{
+ m_insightCategories = categories;
+ emit insightCategoriesChanged();
+}
+
void PropertyEditorContextObject::setSpecificsUrl(const QUrl &newSpecificsUrl)
{
if (newSpecificsUrl == m_specificsUrl)
@@ -581,6 +595,14 @@ bool PropertyEditorContextObject::isBlocked(const QString &propName) const
return false;
}
+void PropertyEditorContextObject::verifyInsightImport()
+{
+ Import import = Import::createLibraryImport("QtInsightTracker", "1.0");
+
+ if (!m_model->hasImport(import))
+ m_model->changeImports({import}, {});
+}
+
void EasingCurveEditor::registerDeclarativeType()
{
qmlRegisterType<EasingCurveEditor>("HelperWidgets", 2, 0, "EasingCurveEditor");