mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 19:24:32 +02:00
Fix MS17469: Fix conditionals for needing more paginated results when ListView changes
This commit is contained in:
parent
16b483b338
commit
4248f342b4
1 changed files with 3 additions and 1 deletions
|
@ -57,9 +57,9 @@ ListModel {
|
|||
// Not normally set directly, but rather by giving a truthy argument to getFirstPage(true);
|
||||
property bool delayedClear: false;
|
||||
function resetModel() {
|
||||
if (!delayedClear) { root.clear(); }
|
||||
currentPageToRetrieve = 1;
|
||||
retrievedAtLeastOnePage = false;
|
||||
if (!delayedClear) { root.clear(); }
|
||||
totalPages = 0;
|
||||
totalEntries = 0;
|
||||
}
|
||||
|
@ -94,11 +94,13 @@ ListModel {
|
|||
function needsMoreHorizontalResults() {
|
||||
return flickable
|
||||
&& currentPageToRetrieve > 0
|
||||
&& retrievedAtLeastOnePage
|
||||
&& flickable.contentWidth < flickable.width;
|
||||
}
|
||||
function needsMoreVerticalResults() {
|
||||
return flickable
|
||||
&& currentPageToRetrieve > 0
|
||||
&& retrievedAtLeastOnePage
|
||||
&& flickable.contentHeight < flickable.height;
|
||||
}
|
||||
function getNextPageIfNotEnoughHorizontalResults() {
|
||||
|
|
Loading…
Reference in a new issue