Commit d72df1c9 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

compile fix

Change-Id: I95ed9831d016bc967e99e934a09e0cb43054fdba
Reviewed-on: http://codereview.qt-project.org/5223


Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent e67d0d19
......@@ -96,7 +96,7 @@ static inline bool itemsHaveSameParent(const QList<ModelNode> &siblingList)
if (item.isRootModelNode())
return false;
QmlItemNode parent = item.instanceParent();
QmlItemNode parent = item.instanceParent().toQmlItemNode();
if (!parent.isValid())
return false;
......@@ -104,7 +104,7 @@ static inline bool itemsHaveSameParent(const QList<ModelNode> &siblingList)
QmlItemNode currentItem(node);
if (!currentItem.isValid())
return false;
QmlItemNode currentParent = currentItem.instanceParent();
QmlItemNode currentParent = currentItem.instanceParent().toQmlItemNode();
if (!currentParent.isValid())
return false;
if (currentItem.instanceIsInPositioner())
......@@ -766,7 +766,7 @@ void ModelNodeAction::layoutRow()
{
RewriterTransaction transaction(m_view);
QmlItemNode parent = QmlItemNode(m_modelNodeList.first()).instanceParent();
QmlItemNode parent = QmlItemNode(m_modelNodeList.first()).instanceParent().toQmlItemNode();
if (!parent.isValid())
return;
......@@ -794,7 +794,7 @@ void ModelNodeAction::layoutColumn()
{
RewriterTransaction transaction(m_view);
QmlItemNode parent = QmlItemNode(m_modelNodeList.first()).instanceParent();
QmlItemNode parent = QmlItemNode(m_modelNodeList.first()).instanceParent().toQmlItemNode();
if (!parent.isValid())
return;
......@@ -822,7 +822,7 @@ void ModelNodeAction::layoutGrid()
{
RewriterTransaction transaction(m_view);
QmlItemNode parent = QmlItemNode(m_modelNodeList.first()).instanceParent();
QmlItemNode parent = QmlItemNode(m_modelNodeList.first()).instanceParent().toQmlItemNode();
if (!parent.isValid())
return;
......@@ -851,7 +851,7 @@ void ModelNodeAction::layoutFlow()
{
RewriterTransaction transaction(m_view);
QmlItemNode parent = QmlItemNode(m_modelNodeList.first()).instanceParent();
QmlItemNode parent = QmlItemNode(m_modelNodeList.first()).instanceParent().toQmlItemNode();
if (!parent.isValid())
return;
......
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