on xenial help sign in
Does adding the processEvents help?
commit40354d763a5b6d5ff6a1aac697019b71040fa985 authorAlbert Astals <albert.astals@canonical.com> dateThu 20 Jun 2013, 09:44 (13 years ago) parent5fc7ed6
1 file changed+5
tests/plugins/ListViewWithPageHeader/listviewwithpageheadertestsection.cpp+5
tests/plugins/ListViewWithPageHeader/listviewwithpageheadertestsection.cpp+5
@@ -50,16 +50,19 @@ private:
5050 while (lvwph->contentY() + jump < dest) {
5151 lvwph->setContentY(lvwph->contentY() + jump);
5252 QTest::qWait(1);
53+ qApp->processEvents();
5354 }
5455 } else {
5556 const qreal jump = -25;
5657 while (lvwph->contentY() + jump > dest) {
5758 lvwph->setContentY(lvwph->contentY() + jump);
5859 QTest::qWait(1);
60+ qApp->processEvents();
5961 }
6062 }
6163 lvwph->setContentY(dest);
6264 QTest::qWait(1);
65+ qApp->processEvents();
6366 }
6467
6568 void scrollToTop()
@@ -72,6 +75,7 @@ private:
7275 lvwph->setContentY(lvwph->contentY() - 1);
7376 }
7477 QTest::qWait(1);
78+ qApp->processEvents();
7579 }
7680 }
7781
@@ -85,6 +89,7 @@ private:
8589 lvwph->setContentY(lvwph->contentY() + 1);
8690 }
8791 QTest::qWait(1);
92+ qApp->processEvents();
8893 }
8994 }
9095