diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/compat/removed_api.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index 4bca576ed4..9b7ad48384 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -1005,6 +1005,19 @@ bool QJsonValue::operator!=(const QJsonValue &other) const return !comparesEqual(*this, other); } +#include "qobject.h" + +int QObject::startTimer(std::chrono::milliseconds time, Qt::TimerType timerType) +{ + using namespace std::chrono; + using ratio = std::ratio_divide<std::milli, std::nano>; + if (nanoseconds::rep r; qMulOverflow<ratio::num>(time.count(), &r)) { + qWarning("QObject::startTimer(std::chrono::milliseconds time ...): " + "'time' arg will overflow when converted to nanoseconds."); + } + return startTimer(nanoseconds{time}, timerType); +} + #if QT_CONFIG(processenvironment) #include "qprocess.h" // inlined API @@ -1038,19 +1051,6 @@ bool QUrlQuery::operator==(const QUrlQuery &other) const return comparesEqual(*this, other); } -#include "qobject.h" - -int QObject::startTimer(std::chrono::milliseconds time, Qt::TimerType timerType) -{ - using namespace std::chrono; - using ratio = std::ratio_divide<std::milli, std::nano>; - if (nanoseconds::rep r; qMulOverflow<ratio::num>(time.count(), &r)) { - qWarning("QObject::startTimer(std::chrono::milliseconds time ...): " - "'time' arg will overflow when converted to nanoseconds."); - } - return startTimer(nanoseconds{time}, timerType); -} - #include "qstring.h" // inlined API #include "qxmlstream.h" // inlined API |