Commit d54be468 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Make AbstractView parameter const



Otherwise we can not past a const AbstractView in a const method.

Change-Id: I59dab8b6c5cfb3a3b56bd13f61d237a8a94df3b0
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 599b72a2
......@@ -90,7 +90,7 @@ public:
};
ModelNode();
ModelNode(const Internal::InternalNodePointer &internalNode, Model *model, AbstractView *view);
ModelNode(const Internal::InternalNodePointer &internalNode, Model *model, const AbstractView *view);
ModelNode(const ModelNode modelNode, AbstractView *view);
ModelNode(const ModelNode &other);
~ModelNode();
......
......@@ -77,10 +77,10 @@ All the manipulation functions are generating undo commands internally.
/*! \brief internal constructor
*/
ModelNode::ModelNode(const InternalNodePointer &internalNode, Model *model, AbstractView *view):
ModelNode::ModelNode(const InternalNodePointer &internalNode, Model *model, const AbstractView *view):
m_internalNode(internalNode),
m_model(model),
m_view(view)
m_view(const_cast<AbstractView*>(view))
{
Q_ASSERT(!m_model || m_view);
}
......
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