on xenial help sign in
LVWPH: cull lost items

lost items will be released on the next updatePolish cycle but meanwhile don't let them be visible

commit7dc5cc41700dfa24f22a9870bd9b249af829e6ec authorAlbert Astals <albert.astals@canonical.com> dateMon 24 Mar 2014, 16:10 (13 years ago) parent687ce2628ebca0
2 files changed+5
plugins/DashViews/listviewwithpageheader.cpp+1 tests/plugins/DashViews/listviewwithpageheadertest.cpp+4
plugins/DashViews/listviewwithpageheader.cpp+1
@@ -847,6 +847,7 @@ ListViewWithPageHeader::ListItem *ListViewWithPageHeader::createItem(int modelIn
847847 }
848848 }
849849 if (lostItem) {
850+ listItem->setCulled(true);
850851 releaseItem(listItem);
851852 listItem = nullptr;
852853 } else {
tests/plugins/DashViews/listviewwithpageheadertest.cpp+4
@@ -32,6 +32,10 @@
3232#include <private/qquickitem_p.h>
3333#pragma GCC diagnostic pop
3434
35+// TODO Think on how doing a test for lost items
36+// particullary making sure that lost items are culled
37+// and then removed in the next updatePolish cycle
38+
3539class ListViewWithPageHeaderTest : public QObject
3640{
3741 Q_OBJECT