summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
};