summaryrefslogtreecommitdiff
path: root/src/sensorsquick/qmlsensor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sensorsquick/qmlsensor.cpp')
-rw-r--r--src/sensorsquick/qmlsensor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sensorsquick/qmlsensor.cpp b/src/sensorsquick/qmlsensor.cpp
index eb64f2e..1e37541 100644
--- a/src/sensorsquick/qmlsensor.cpp
+++ b/src/sensorsquick/qmlsensor.cpp
@@ -20,7 +20,7 @@ public:
template<typename Item>
qsizetype readonlyListCount(QQmlListProperty<Item> *p)
{
- return static_cast<const QList<Item *> *>(p->data)->count();
+ return static_cast<const QList<Item *> *>(p->data)->size();
}
template<typename Item>
@@ -453,9 +453,9 @@ void QmlSensor::componentComplete()
// meta-data should become non-empty
if (!description().isEmpty())
Q_EMIT descriptionChanged();
- if (available.count())
+ if (available.size())
Q_EMIT availableDataRatesChanged();
- if (output.count())
+ if (output.size())
Q_EMIT outputRangesChanged();
connect(sensor(), SIGNAL(readingChanged()), this, SLOT(updateReading()));