Commit 30b206a5 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.TabViewSupport: Add proper setter



Change-Id: Icc081ca3df73b565eae1aa062a86e3560f0b3793
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent c94d86e8
......@@ -43,12 +43,17 @@ void TabViewIndexModel::setModelNodeBackend(const QVariant &modelNodeBackend)
QObject* modelNodeBackendObject = modelNodeBackend.value<QObject*>();
if (modelNodeBackendObject)
m_modelNode = modelNodeBackendObject->property("modelNode").value<QmlDesigner::ModelNode>();
setModelNode(modelNodeBackendObject->property("modelNode").value<QmlDesigner::ModelNode>());
setupModel();
emit modelNodeBackendChanged();
}
void TabViewIndexModel::setModelNode(const QmlDesigner::ModelNode &modelNode)
{
m_modelNode = modelNode;
}
QStringList TabViewIndexModel::tabViewIndexModel() const
{
return m_tabViewIndexModel;
......
......@@ -45,6 +45,7 @@ public:
explicit TabViewIndexModel(QObject *parent = 0);
void setModelNodeBackend(const QVariant &modelNodeBackend);
void setModelNode(const QmlDesigner::ModelNode &modelNode);
QStringList tabViewIndexModel() const;
void setupModel();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment