[qt] Move to modern signal/slot connection mechanism (#138)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user