Ref T730, use an event loop with parent "this"

* central function to get QEventLoop (this can also be used to set a timeout)
* do NOT use sApp as parent -> parent must be in same thread
This commit is contained in:
Klaus Basan
2019-10-06 17:29:11 +02:00
committed by Mat Sutcliffe
parent e4e4dd090e
commit b802933422
4 changed files with 20 additions and 7 deletions

View File

@@ -72,7 +72,7 @@ namespace BlackMisc
return QStringLiteral("0x%1").arg(reinterpret_cast<long long>(t), 0, 16);
}
const QString CThreadUtils::threadInfo(QThread *thread)
const QString CThreadUtils::threadInfo(const QThread *thread)
{
static const QString info("thread: %1 name: '%2' priority: '%3'");
if (!thread) { return QString("no thread"); }