diff options
Diffstat (limited to 'src/testlib/qtesteventloop.h')
-rw-r--r-- | src/testlib/qtesteventloop.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/testlib/qtesteventloop.h b/src/testlib/qtesteventloop.h index 19ad22565e..a77b47cd7f 100644 --- a/src/testlib/qtesteventloop.h +++ b/src/testlib/qtesteventloop.h @@ -83,7 +83,7 @@ protected: inline void timerEvent(QTimerEvent *e) override; private: - bool inLoop; + Q_DECL_UNUSED_MEMBER bool inLoop; // ### Qt 6: remove bool _timeout; int timerId; @@ -96,7 +96,6 @@ inline void QTestEventLoop::enterLoopMSecs(int ms) QEventLoop l; - inLoop = true; _timeout = false; timerId = startTimer(ms); @@ -120,8 +119,6 @@ inline void QTestEventLoop::exitLoop() if (loop) loop->exit(); - - inLoop = false; } inline void QTestEventLoop::timerEvent(QTimerEvent *e) |