Inline one method as per ###Qt6
Change-Id: I4bf0ddf4ddf4044a60d881a57ef63b96d4bac262 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
This commit is contained in:
parent
14dece57e9
commit
d24174918f
@ -989,12 +989,6 @@ void QThread::setEventDispatcher(QAbstractEventDispatcher *eventDispatcher)
|
||||
\fn bool QThread::wait(unsigned long time)
|
||||
\overload
|
||||
*/
|
||||
bool QThread::wait(unsigned long time)
|
||||
{
|
||||
if (time == std::numeric_limits<unsigned long>::max())
|
||||
return wait(QDeadlineTimer(QDeadlineTimer::Forever));
|
||||
return wait(QDeadlineTimer(time));
|
||||
}
|
||||
|
||||
#if QT_CONFIG(thread)
|
||||
|
||||
|
@ -115,8 +115,12 @@ public Q_SLOTS:
|
||||
|
||||
public:
|
||||
bool wait(QDeadlineTimer deadline = QDeadlineTimer(QDeadlineTimer::Forever));
|
||||
// ### Qt6 inline this function
|
||||
bool wait(unsigned long time);
|
||||
bool wait(unsigned long time)
|
||||
{
|
||||
if (time == std::numeric_limits<unsigned long>::max())
|
||||
return wait(QDeadlineTimer(QDeadlineTimer::Forever));
|
||||
return wait(QDeadlineTimer(time));
|
||||
}
|
||||
|
||||
static void sleep(unsigned long);
|
||||
static void msleep(unsigned long);
|
||||
|
Loading…
x
Reference in New Issue
Block a user