mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Issue #77 Use Qt facilites instead of own implementations
This commit is contained in:
@@ -53,12 +53,7 @@ namespace BlackMisc
|
||||
if (!object) { return false; }
|
||||
if (CThreadUtils::isCurrentThreadObjectThread(object)) { return false; }
|
||||
|
||||
QPointer<QObject> myself(object);
|
||||
QTimer::singleShot(0, object, [ = ]
|
||||
{
|
||||
if (!myself) { return; }
|
||||
callFunct();
|
||||
});
|
||||
QMetaObject::invokeMethod(object, callFunct);
|
||||
return true;
|
||||
}
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user