1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-04 01:42:44 +00:00

WIP: Slowly bringing back viewmodels

This commit is contained in:
Chris Josten 2021-03-29 23:48:16 +02:00
parent 9abee12658
commit 228f81984b
17 changed files with 292 additions and 96 deletions

View file

@ -168,7 +168,7 @@ public:
m_startIndex = 0;
m_totalRecordCount = -1;
emitModelShouldClear();
loadMore(0, -1, ViewModel::ModelStatus::Loading);
loadMore(0, m_limit, ViewModel::ModelStatus::Loading);
}
void loadMore() {
@ -272,7 +272,9 @@ protected:
// meaning loadMore is not supported.
return;
}
setRequestLimit<P>(this->m_parameters, limit);
if (limit > 0) {
setRequestLimit<P>(this->m_parameters, limit);
}
this->setStatus(suggestedModelStatus);
// We never want to set this while the loader is running, hence the Mutex and setting it here