testlib: Mark unused member variable for future removal

inLoop is only set, never read and it is private. Since the class is public, it
can't be removed yet, but add a comment so that it will be removed when
possible.

Change-Id: I5e212194cb65626fce2b4c7b68801a73dbe3f500
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Kari Oikarinen 2018-06-04 11:42:58 +03:00
parent a217188fe0
commit eb5c9a1f2a

View File

@ -83,7 +83,7 @@ protected:
inline void timerEvent(QTimerEvent *e) override; inline void timerEvent(QTimerEvent *e) override;
private: private:
bool inLoop; Q_DECL_UNUSED_MEMBER bool inLoop; // ### Qt 6: remove
bool _timeout; bool _timeout;
int timerId; int timerId;
@ -96,7 +96,6 @@ inline void QTestEventLoop::enterLoopMSecs(int ms)
QEventLoop l; QEventLoop l;
inLoop = true;
_timeout = false; _timeout = false;
timerId = startTimer(ms); timerId = startTimer(ms);
@ -120,8 +119,6 @@ inline void QTestEventLoop::exitLoop()
if (loop) if (loop)
loop->exit(); loop->exit();
inLoop = false;
} }
inline void QTestEventLoop::timerEvent(QTimerEvent *e) inline void QTestEventLoop::timerEvent(QTimerEvent *e)