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