Issue #77 Use Qt facilites instead of own implementations

This commit is contained in:
Mat Sutcliffe
2020-08-24 00:53:04 +01:00
parent b7f6b06491
commit ac454ebf3a
7 changed files with 13 additions and 55 deletions

View File

@@ -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