We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a60a730 commit 08049bdCopy full SHA for 08049bd
examples/CalcQt/features/step_definitions/CalculatorQtSteps.cpp
@@ -37,11 +37,13 @@ GIVEN("^I just turned on the calculator$") {
37
ctx->calculator.move(0, 0);
38
ctx->calculator.show();
39
#if QT_VERSION >= 0x050000
40
- QTest::qWaitForWindowExposed(&ctx->calculator);
+ bool exposed = QTest::qWaitForWindowExposed(&ctx->calculator);
41
#else
42
- QTest::qWaitForWindowShown(&ctx->calculator);
+ bool exposed = QTest::qWaitForWindowShown(&ctx->calculator);
43
#endif
44
- QTest::qWait(millisecondsToWait());
+ if (!exposed) {
45
+ QTest::qWait(millisecondsToWait());
46
+ }
47
}
48
49
WHEN("^I press (\\d+)$") {
0 commit comments