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/util/qquickapplication.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/quick/util/qquickapplication.cpp') diff --git a/src/quick/util/qquickapplication.cpp b/src/quick/util/qquickapplication.cpp index fef87bd931..1c0522451a 100644 --- a/src/quick/util/qquickapplication.cpp +++ b/src/quick/util/qquickapplication.cpp @@ -113,12 +113,12 @@ void QQuickApplication::setDisplayName(const QString &displayName) return QGuiApplication::setApplicationDisplayName(displayName); } -int screens_count(QQmlListProperty *prop) +qsizetype screens_count(QQmlListProperty *prop) { return static_cast *>(prop->data)->count(); } -QQuickScreenInfo *screens_at(QQmlListProperty *prop, int idx) +QQuickScreenInfo *screens_at(QQmlListProperty *prop, qsizetype idx) { return static_cast *>(prop->data)->at(idx); } -- cgit v1.2.3