QmlDesigner: Fix build with Qt 6

error: non-constant-expression cannot be narrowed from type 'qsizetype'
(aka 'long long') to 'int' in initializer list

Change-Id: I743f942fb0bef9f907b4facbb346264dfeaad778
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Eike Ziller
2021-04-23 11:14:35 +02:00
parent 77fd9661ec
commit eef041a1a8

View File

@@ -177,7 +177,7 @@ NodeListProperty::iterator NodeListProperty::rotate(NodeListProperty::iterator f
privateModel()->notifyNodeOrderChanged(m_internalNodeListProperty);
return {iter - begin, internalNodeListProperty().data(), model(), view()};
return {int(iter - begin), internalNodeListProperty().data(), model(), view()};
}
void NodeListProperty::reverse(NodeListProperty::iterator first, NodeListProperty::iterator last)