[qt] Move to modern signal/slot connection mechanism (#138)

This commit is contained in:
Tadej Novak
2021-08-29 22:54:07 +02:00
committed by GitHub
parent fe041b80ca
commit 5c2414463f
13 changed files with 115 additions and 39 deletions

View File

@@ -11,7 +11,7 @@ namespace util {
AsyncTask::Impl::Impl(std::function<void()>&& fn)
: runLoop(RunLoop::Get()),
task(std::move(fn)) {
connect(this, SIGNAL(send(void)), this, SLOT(runTask(void)), Qt::QueuedConnection);
connect(this, &AsyncTask::Impl::send, this, &AsyncTask::Impl::runTask, Qt::QueuedConnection);
}
void AsyncTask::Impl::maySend() {