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

@@ -48,7 +48,7 @@ namespace BlackMisc
static const QString threadToString(const void *t);
//! Info about current thread
static const QString threadInfo(QThread *thread);
static const QString threadInfo(const QThread *thread);
//! Info about current thread
static const QString currentThreadInfo();