summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android/qandroidinputcontext.cpp
diff options
context:
space:
mode:
authorAhmad Samir <[email protected]>2023-04-29 15:07:14 +0300
committerAhmad Samir <[email protected]>2023-10-24 18:29:45 +0300
commitceee7acf43464dbbcca7e05911e354532c5435f6 (patch)
treea366386e504305f72775059fb44fb559ba5bef36 /src/plugins/platforms/android/qandroidinputcontext.cpp
parentdf2e07549e6edd1d271cce1d86cadd4a33dfd8fc (diff)
qcore_unix: port qt_safe_poll to QDeadlineTimer
Remove qt_poll_msecs() since the "forever" state can be simply expressed with a QDeadlineTimer::Forever arg, instead of passing a nullptr timespec, and the negative timeouts treated as "run forever" is also encapsulated by QDealineTimer. Use the QDealineTimer(qint64) constructor in the call sites where the timeout could be negative, so that it creates a Forever timer (the QDeadlineTimer(chrono::duration) constructor uses setRemainingTime(duration) which handles negative timeouts by creating expired timers). Remove qt_gettime() (and do_gettime()). Drive-by changes: - Fix a narrowing conversion warning, qt_make_pollfd() takes an int - Remove an unused include Change-Id: I096319af5e191e28c3d39295fb1aafe9d69841e6 Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'src/plugins/platforms/android/qandroidinputcontext.cpp')
0 files changed, 0 insertions, 0 deletions