on xenial help sign in
Does adding the processEvents help?
40354d7Albert Astals
tests/plugins/ListViewWithPageHeader/listviewwithpageheadertestsection.cpp+5
@@ -50,16 +50,19 @@ private:
50 while (lvwph->contentY() + jump < dest) {
50 while (lvwph->contentY() + jump < dest) {
51 lvwph->setContentY(lvwph->contentY() + jump);
51 lvwph->setContentY(lvwph->contentY() + jump);
52 QTest::qWait(1);
52 QTest::qWait(1);
53+ qApp->processEvents();
53 }
54 }
54 } else {
55 } else {
55 const qreal jump = -25;
56 const qreal jump = -25;
56 while (lvwph->contentY() + jump > dest) {
57 while (lvwph->contentY() + jump > dest) {
57 lvwph->setContentY(lvwph->contentY() + jump);
58 lvwph->setContentY(lvwph->contentY() + jump);
58 QTest::qWait(1);
59 QTest::qWait(1);
60+ qApp->processEvents();
59 }
61 }
60 }
62 }
61 lvwph->setContentY(dest);
63 lvwph->setContentY(dest);
62 QTest::qWait(1);
64 QTest::qWait(1);
65+ qApp->processEvents();
63 }
66 }
64
67
65 void scrollToTop()
68 void scrollToTop()
@@ -72,6 +75,7 @@ private:
72 lvwph->setContentY(lvwph->contentY() - 1);
75 lvwph->setContentY(lvwph->contentY() - 1);
73 }
76 }
74 QTest::qWait(1);
77 QTest::qWait(1);
78+ qApp->processEvents();
75 }
79 }
76 }
80 }
77
81
@@ -85,6 +89,7 @@ private:
85 lvwph->setContentY(lvwph->contentY() + 1);
89 lvwph->setContentY(lvwph->contentY() + 1);
86 }
90 }
87 QTest::qWait(1);
91 QTest::qWait(1);
92+ qApp->processEvents();
88 }
93 }
89 }
94 }
90
95