summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2024-02-19 15:16:42 +0100
committerDominik Holland <dominik.holland@qt.io>2024-02-19 15:53:37 +0100
commite830a015b4a664f18faa9adf53cbd5e1602cbfaf (patch)
tree19913c544f0f36e713ffa391dce6fda04d0ee0c0
parentc9ee0eec68f001f9c68bc74fb6029cc566640a2d (diff)
Remove const from the QIfPagingModel::fetchMoreThresholdReached() signal
Change-Id: Ifa91aad2ab9eabd9acdb03e045fdd9b7622e1eb7 Pick-to: 6.7 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
-rw-r--r--src/interfaceframework/qifpagingmodel.cpp4
-rw-r--r--src/interfaceframework/qifpagingmodel.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaceframework/qifpagingmodel.cpp b/src/interfaceframework/qifpagingmodel.cpp
index 1c5bac7f..f5051b74 100644
--- a/src/interfaceframework/qifpagingmodel.cpp
+++ b/src/interfaceframework/qifpagingmodel.cpp
@@ -603,7 +603,7 @@ QVariant QIfPagingModel::data(const QModelIndex &index, int role) const
}
if (row >= d->m_fetchedDataCount - d->m_fetchMoreThreshold && canFetchMore(QModelIndex()))
- emit fetchMoreThresholdReached();
+ emit const_cast<QIfPagingModel*>(this)->fetchMoreThresholdReached();
const QIfStandardItem *item = d->itemAt(row);
if (!item) {
@@ -764,7 +764,7 @@ void QIfPagingModel::clearServiceObject()
}
/*!
- \fn void QIfPagingModel::fetchMoreThresholdReached() const
+ \fn void QIfPagingModel::fetchMoreThresholdReached()
This signal is emitted whenever the fetchMoreThreshold is reached and new data is requested from the backend.
*/
diff --git a/src/interfaceframework/qifpagingmodel.h b/src/interfaceframework/qifpagingmodel.h
index 358d77b1..c12b965b 100644
--- a/src/interfaceframework/qifpagingmodel.h
+++ b/src/interfaceframework/qifpagingmodel.h
@@ -76,7 +76,7 @@ Q_SIGNALS:
void chunkSizeChanged(int chunkSize);
void countChanged();
void fetchMoreThresholdChanged(int fetchMoreThreshold);
- void fetchMoreThresholdReached() const;
+ void fetchMoreThresholdReached();
void loadingTypeChanged(QIfPagingModel::LoadingType loadingType);
protected: