diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2020-11-26 09:02:42 +0100 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2020-12-01 08:20:35 +0100 |
commit | 94415009a3260bfa516b953beadb3f4c8ac2aab3 (patch) | |
tree | ef66fbfab1698bc4235c48959e32985e8bb08c38 /src/webchannel/qqmlwebchannel.h | |
parent | b41c414e30e3d984f887641b34fbd23db1b6e6ad (diff) |
Use qsizetype instead of int for QQmlListProperty
Fixes build with the latest qtdeclarative.
Change-Id: Ib075cf3515db044c00b93f71ae651151f7e64a97
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Diffstat (limited to 'src/webchannel/qqmlwebchannel.h')
-rw-r--r-- | src/webchannel/qqmlwebchannel.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/webchannel/qqmlwebchannel.h b/src/webchannel/qqmlwebchannel.h index d6b7bb9..72d067a 100644 --- a/src/webchannel/qqmlwebchannel.h +++ b/src/webchannel/qqmlwebchannel.h @@ -77,13 +77,13 @@ private: Q_PRIVATE_SLOT(d_func(), void _q_objectIdChanged(const QString &newId)) static void registeredObjects_append(QQmlListProperty<QObject> *prop, QObject *item); - static int registeredObjects_count(QQmlListProperty<QObject> *prop); - static QObject *registeredObjects_at(QQmlListProperty<QObject> *prop, int index); + static qsizetype registeredObjects_count(QQmlListProperty<QObject> *prop); + static QObject *registeredObjects_at(QQmlListProperty<QObject> *prop, qsizetype index); static void registeredObjects_clear(QQmlListProperty<QObject> *prop); static void transports_append(QQmlListProperty<QObject> *prop, QObject *item); - static int transports_count(QQmlListProperty<QObject> *prop); - static QObject *transports_at(QQmlListProperty<QObject> *prop, int index); + static qsizetype transports_count(QQmlListProperty<QObject> *prop); + static QObject *transports_at(QQmlListProperty<QObject> *prop, qsizetype index); static void transports_clear(QQmlListProperty<QObject> *prop); }; |