diff --git a/src/corelib/kernel/qproperty.cpp b/src/corelib/kernel/qproperty.cpp index 742d2c5f409..273f788add2 100644 --- a/src/corelib/kernel/qproperty.cpp +++ b/src/corelib/kernel/qproperty.cpp @@ -121,7 +121,7 @@ struct QPropertyDelayedNotifications Change notifications are sent later with notify (following the logic of separating binding updates and notifications used in non-deferred updates). */ - [[nodiscard]] PendingBindingObserverList evaluateBindings(int index, QBindingStatus *status) { + [[nodiscard]] PendingBindingObserverList evaluateBindings(qsizetype index, QBindingStatus *status) { PendingBindingObserverList bindingObservers; auto *delayed = delayedProperties + index; auto *bindingData = delayed->originalBindingData; @@ -151,7 +151,7 @@ struct QPropertyDelayedNotifications \li sends any pending notifications. \endlist */ - void notify(int index) { + void notify(qsizetype index) { auto *delayed = delayedProperties + index; auto *bindingData = delayed->originalBindingData; if (!bindingData) @@ -221,7 +221,7 @@ void Qt::endPropertyUpdateGroup() // update all delayed properties auto start = data; while (data) { - for (int i = 0; i < data->used; ++i) { + for (qsizetype i = 0; i < data->used; ++i) { PendingBindingObserverList bindingObserves = data->evaluateBindings(i, status); Q_UNUSED(bindingObserves); // ### TODO: Use bindingObservers for notify @@ -231,7 +231,7 @@ void Qt::endPropertyUpdateGroup() // notify all delayed properties data = start; while (data) { - for (int i = 0; i < data->used; ++i) + for (qsizetype i = 0; i < data->used; ++i) data->notify(i); auto *next = data->next; delete data;