From d7008c79d4ec023527ebfc118ad47f40075f244d Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 9 Nov 2020 10:46:07 +0100 Subject: QQmlListProperty: Use qsizetype rather than int for sizes [ChangeLog][QtQml] The QQmlListProperty callback functions use qsizetype now as type for the size of a list. This is in line with the containers that you might use to back the list. Fixes: QTBUG-88269 Change-Id: Ia38403cb32f241e6c70e1a580dbeff1d6d694331 Reviewed-by: Fabian Kosmale --- src/quick/items/qquickmultipointtoucharea_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/quick/items/qquickmultipointtoucharea_p.h') diff --git a/src/quick/items/qquickmultipointtoucharea_p.h b/src/quick/items/qquickmultipointtoucharea_p.h index 16e490adab..7b6426d3ab 100644 --- a/src/quick/items/qquickmultipointtoucharea_p.h +++ b/src/quick/items/qquickmultipointtoucharea_p.h @@ -240,12 +240,12 @@ public: q->addTouchPrototype(touch); } - static int touchPoint_count(QQmlListProperty *list) { + static qsizetype touchPoint_count(QQmlListProperty *list) { QQuickMultiPointTouchArea *q = static_cast(list->object); return q->_touchPrototypes.count(); } - static QQuickTouchPoint* touchPoint_at(QQmlListProperty *list, int index) { + static QQuickTouchPoint* touchPoint_at(QQmlListProperty *list, qsizetype index) { QQuickMultiPointTouchArea *q = static_cast(list->object); return q->_touchPrototypes.value(index); } -- cgit v1.2.3