From c9ea8ac74d94b128cb0fe3b69d60d16ea1b202af Mon Sep 17 00:00:00 2001 From: Tatiana Borisova Date: Thu, 25 Apr 2024 16:09:20 +0200 Subject: [PATCH] Move int QObject::startTimer() to the alphabetically ordered place Change-Id: Ibd1f0ef1c57e8aa31ea7b42b2874ba860d9c4373 Reviewed-by: Thiago Macieira Reviewed-by: Ivan Solovev --- src/corelib/compat/removed_api.cpp | 26 +++++++++++++------------- 1 file 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; + if (nanoseconds::rep r; qMulOverflow(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; - if (nanoseconds::rep r; qMulOverflow(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