~unity-team/unity8/trunk

« back to all changes in this revision

Viewing changes to tests/plugins/Dash/listviewwithpageheadertest.cpp

  • Committer: CI Train Bot
  • Author(s): Albert Astals Cid
  • Date: 2016-05-27 13:53:57 UTC
  • mfrom: (2394.3.3 lvwph_qt56_fix)
  • Revision ID: ci-train-bot@canonical.com-20160527135357-1saet6lhw48iwahz
Listen to contentItem::widthChanged instead of Flickable::contentWidthChanged

Fixes compatibility with Qt 5.6 Fixes: #1565763
Approved by: Gerry Boland, Timo Jyrinki

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        QTRY_COMPARE(item->y(), pos);
46
46
        QTRY_COMPARE(item->height(), height);
47
47
        QCOMPARE(QQuickItemPrivate::get(item->m_item)->culled, culled);
 
48
        if (lvwph->delegate() == otherDelegate) {
 
49
            QCOMPARE(item->m_item->width(), lvwph->width());
 
50
        } else {
 
51
            QCOMPARE(item->m_item->width(), lvwph->width() - 20);
 
52
        }
48
53
    }
49
54
 
50
55
    void changeContentY(qreal change)