summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2020-12-08 18:54:18 +0200
committerJuha Vuolle <juha.vuolle@insta.fi>2020-12-18 07:29:34 +0200
commit8c603a9fb1ebae2bc13ef2a03a5b174db5536e8d (patch)
treea83f5a4fe7639e4d817da9d33ca83c289278c9d9 /src
parentfd40cc0e0defadb0d6cd4c1dd1c976fcf9d27e01 (diff)
Qt6 uses qsizetype for the qqmllistproperty size/indexes
Change-Id: Ifea53d932e1c5726c57dc31f0c7a40892db3501c Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/imports/sensors/qmlsensor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/sensors/qmlsensor.cpp b/src/imports/sensors/qmlsensor.cpp
index 752cdb18..be1f4588 100644
--- a/src/imports/sensors/qmlsensor.cpp
+++ b/src/imports/sensors/qmlsensor.cpp
@@ -54,13 +54,13 @@ public:
};
template<typename Item>
-int readonlyListCount(QQmlListProperty<Item> *p)
+qsizetype readonlyListCount(QQmlListProperty<Item> *p)
{
return static_cast<const QList<Item *> *>(p->data)->count();
}
template<typename Item>
-Item *readonlyListAt(QQmlListProperty<Item> *p, int idx)
+Item *readonlyListAt(QQmlListProperty<Item> *p, qsizetype idx)
{
return static_cast<const QList<Item *> *>(p->data)->at(idx);
};