Commit 77d6b544 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.model: changing signature of setAuxiliaryData()

This should be const to be consistent with the rest.
parent 4e0eddff
......@@ -165,7 +165,7 @@ public:
QVariant toVariant() const;
QVariant auxiliaryData(const QString &name) const;
void setAuxiliaryData(const QString &name, const QVariant &data);
void setAuxiliaryData(const QString &name, const QVariant &data) const;
bool hasAuxiliaryData(const QString &name) const;
qint32 internalId() const;
......
......@@ -902,7 +902,7 @@ QVariant ModelNode::auxiliaryData(const QString &name) const
return internalNode()->auxiliaryData(name);
}
void ModelNode::setAuxiliaryData(const QString &name, const QVariant &data)
void ModelNode::setAuxiliaryData(const QString &name, const QVariant &data) const
{
Internal::WriteLocker locker(m_model.data());
m_model.data()->m_d->setAuxiliaryData(internalNode(), name, data);
......
Markdown is supported
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