mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-04 00:05:25 +08:00
qt 6.6.0 clean
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
add_subdirectory(qpinger)
|
||||
|
||||
qt_internal_add_test(tst_qdbusabstractinterface
|
||||
SOURCES
|
||||
interface.cpp
|
||||
@ -21,3 +19,5 @@ qt_internal_extend_target(tst_qdbusabstractinterface
|
||||
-i interface.h
|
||||
)
|
||||
|
||||
add_subdirectory(qpinger)
|
||||
add_dependencies(tst_qdbusabstractinterface qpinger)
|
||||
|
@ -8,16 +8,9 @@ Interface::Interface()
|
||||
{
|
||||
}
|
||||
|
||||
// Export the sleep function
|
||||
// TODO QT5: remove this class, QThread::msleep is now public
|
||||
class FriendlySleepyThread : public QThread {
|
||||
public:
|
||||
using QThread::msleep;
|
||||
};
|
||||
|
||||
int Interface::sleepMethod(int msec)
|
||||
{
|
||||
FriendlySleepyThread::msleep(msec);
|
||||
QThread::sleep(std::chrono::milliseconds{msec});
|
||||
return 42;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user