summaryrefslogtreecommitdiffstats
path: root/src/shared-main-lib/monitormodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared-main-lib/monitormodel.cpp')
-rw-r--r--src/shared-main-lib/monitormodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared-main-lib/monitormodel.cpp b/src/shared-main-lib/monitormodel.cpp
index 5bc9e858..21839b2e 100644
--- a/src/shared-main-lib/monitormodel.cpp
+++ b/src/shared-main-lib/monitormodel.cpp
@@ -193,13 +193,13 @@ void MonitorModel::dataSources_append(QQmlListProperty<QObject> *property, QObje
that->appendDataSource(dataSource);
}
-int MonitorModel::dataSources_count(QQmlListProperty<QObject> *property)
+qsizetype MonitorModel::dataSources_count(QQmlListProperty<QObject> *property)
{
auto *that = static_cast<MonitorModel*>(property->object);
return that->m_dataSources.count();
}
-QObject *MonitorModel::dataSources_at(QQmlListProperty<QObject> *property, int index)
+QObject *MonitorModel::dataSources_at(QQmlListProperty<QObject> *property, qsizetype index)
{
auto *that = static_cast<MonitorModel*>(property->object);
return that && that->m_dataSources.count() > index && index >= 0 ? that->m_dataSources.at(index)->obj : nullptr;