aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@jollamobile.com>2013-11-29 11:56:49 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-30 13:30:16 +0100
commit39b715f32a44c136271aecf2c3e28704cbf9e546 (patch)
treee747e3b0323a829329e2de1d633656623420cbc1 /tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
parent7a94cd02f7f45a4b58b494ec81fa425725ca9e0c (diff)
Set all attached section properties before emitting change signals.
If we have bindings to the section properties, e.g. implementing manual section header creation, we want previousSection, section and nextSection to be set before emitting the change signals to prevent different results each time the binding is run. Change-Id: Id3a0b4a53419681f35102c9e7c620b5c6112ebb0 Reviewed-by: Martin Jones <martin.jones@jollamobile.com>
Diffstat (limited to 'tests/auto/quick/qquicklistview/tst_qquicklistview.cpp')
-rw-r--r--tests/auto/quick/qquicklistview/tst_qquicklistview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
index fb0b1c95ca..d888ba2b5c 100644
--- a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
+++ b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
@@ -1956,6 +1956,8 @@ void tst_QQuickListView::sections(const QUrl &source)
QCOMPARE(next->text().toInt(), (i+1)/5);
}
+ QVERIFY(!listview->property("sectionsInvalidOnCompletion").toBool());
+
QSignalSpy currentSectionChangedSpy(listview, SIGNAL(currentSectionChanged()));
// Remove section boundary