on xenial help sign in
Uncomment some more debugs to try to find out what's going wrong with CI
0b609d7Albert Astals
plugins/ListViewWithPageHeader/listviewwithpageheader.cpp+5−5
@@ -547,7 +547,7 @@ QQuickItem *ListViewWithPageHeader::getSectionItem(const QString &sectionText)
547
547
548bool ListViewWithPageHeader::removeNonVisibleItems(qreal bufferFrom, qreal bufferTo)
548bool ListViewWithPageHeader::removeNonVisibleItems(qreal bufferFrom, qreal bufferTo)
549{
549{
550−// qDebug() << "ListViewWithPageHeader::removeNonVisibleItems" << bufferFrom << bufferTo;
550+ qDebug() << "ListViewWithPageHeader::removeNonVisibleItems" << bufferFrom << bufferTo;
551 bool changed = false;
551 bool changed = false;
552
552
553 bool foundVisible = false;
553 bool foundVisible = false;
@@ -556,9 +556,9 @@ bool ListViewWithPageHeader::removeNonVisibleItems(qreal bufferFrom, qreal buffe
556 while (i < m_visibleItems.count()) {
556 while (i < m_visibleItems.count()) {
557 ListItem *item = m_visibleItems[i];
557 ListItem *item = m_visibleItems[i];
558 const qreal pos = item->y() + m_clipItem->y();
558 const qreal pos = item->y() + m_clipItem->y();
559−// qDebug() << i << pos << (pos + item->height()) << bufferFrom << bufferTo;
559+ qDebug() << i << pos << (pos + item->height()) << bufferFrom << bufferTo;
560 if (pos + item->height() < bufferFrom || pos > bufferTo) {
560 if (pos + item->height() < bufferFrom || pos > bufferTo) {
561−// qDebug() << "Releasing" << i << (pos + item->height() < bufferFrom) << pos + item->height() << bufferFrom << (pos > bufferTo) << pos << bufferTo;
561+ qDebug() << "Releasing" << i << (pos + item->height() < bufferFrom) << pos + item->height() << bufferFrom << (pos > bufferTo) << pos << bufferTo;
562 releaseItem(item);
562 releaseItem(item);
563 m_visibleItems.removeAt(i);
563 m_visibleItems.removeAt(i);
564 changed = true;
564 changed = true;
@@ -806,7 +806,7 @@ void ListViewWithPageHeader::updatePolish()
806
806
807 qreal pos = m_visibleItems.first()->y();
807 qreal pos = m_visibleItems.first()->y();
808
808
809−// qDebug() << "ListViewWithPageHeader::updatePolish Updating positions and heights. contentY" << contentY() << "minYExtent" << minYExtent();
809+ qDebug() << "ListViewWithPageHeader::updatePolish Updating positions and heights. contentY" << contentY() << "minYExtent" << minYExtent();
810 int firstReallyVisibleItem = -1;
810 int firstReallyVisibleItem = -1;
811 int modelIndex = m_firstVisibleIndex;
811 int modelIndex = m_firstVisibleIndex;
812 foreach(ListItem *item, m_visibleItems) {
812 foreach(ListItem *item, m_visibleItems) {
@@ -845,7 +845,7 @@ void ListViewWithPageHeader::updatePolish()
845 } else {
845 } else {
846 context->setContextProperty(QLatin1String("heightToClip"), QVariant::fromValue<int>(0));
846 context->setContextProperty(QLatin1String("heightToClip"), QVariant::fromValue<int>(0));
847 }
847 }
848−// qDebug() << "ListViewWithPageHeader::updatePolish" << /*index << */pos + m_clipItem->y() << /*QQuickItemPrivate::get(item)->culled <<*/ (pos + item->height() < visibleFrom) << (pos > visibleTo);
848+ qDebug() << "ListViewWithPageHeader::updatePolish" << item->m_item;
849 pos += item->height();
849 pos += item->height();
850 ++modelIndex;
850 ++modelIndex;
851 }
851 }