aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/formeditor/anchorindicator.cpp
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2023-06-07 13:03:11 +0200
committerMarco Bubke <marco.bubke@qt.io>2023-06-07 11:31:25 +0000
commit278d69df4f5807e5049203e1cb2dccef2836b6a9 (patch)
tree38f527d4008f17dd2dcefcd492026e4dbd830e9d /src/plugins/qmldesigner/components/formeditor/anchorindicator.cpp
parent63f366efdd37b855d956ff239b3d6a30aa8c5e0a (diff)
QmlDesigner: Fix deprecated function calls
count() -> size() userType() -> typeId() type() -> typeId() Fixes: QTCREATORBUG-29237 Change-Id: Ic63b79f6fab1f6ed5227d97aa12dcbfdebb4f05f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/formeditor/anchorindicator.cpp')
-rw-r--r--src/plugins/qmldesigner/components/formeditor/anchorindicator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/anchorindicator.cpp b/src/plugins/qmldesigner/components/formeditor/anchorindicator.cpp
index 7d75c71c22..8a8a3e524f 100644
--- a/src/plugins/qmldesigner/components/formeditor/anchorindicator.cpp
+++ b/src/plugins/qmldesigner/components/formeditor/anchorindicator.cpp
@@ -64,7 +64,7 @@ void AnchorIndicator::setItems(const QList<FormEditorItem *> &itemList)
{
clear();
- if (itemList.count() == 1) {
+ if (itemList.size() == 1) {
m_formEditorItem = itemList.constFirst();
QmlItemNode sourceQmlItemNode = m_formEditorItem->qmlItemNode();
if (!sourceQmlItemNode.modelNode().isRootNode()) {