mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 08:50:05 +02:00
Merge pull request #13789 from zfox23/MS17469_listModelFix
v0.72.0: Fix MS17469: Fix conditionals for needing more paginated results when ListView changes
This commit is contained in:
commit
f514fde6fd
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