summaryrefslogtreecommitdiffstats
path: root/common/clientapi.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-01-30 12:00:36 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-01-30 12:00:36 +0100
commitaa449c82dc3a5505b8a63843b83aed0f5dab8ed1 (patch)
treec600c94e2ac72769710b10cd3ed663120d06076d /common/clientapi.cpp
parentbf00b2c3a0fbfbdcbd7c5f4ab519049dc02c1263 (diff)
downloadsink-aa449c82dc3a5505b8a63843b83aed0f5dab8ed1.tar.gz
sink-aa449c82dc3a5505b8a63843b83aed0f5dab8ed1.zip
clenup
Diffstat (limited to 'common/clientapi.cpp')
-rw-r--r--common/clientapi.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/common/clientapi.cpp b/common/clientapi.cpp
index 260b6b8..190bb57 100644
--- a/common/clientapi.cpp
+++ b/common/clientapi.cpp
@@ -6,14 +6,8 @@
6namespace async 6namespace async
7{ 7{
8 void run(const std::function<void()> &runner) { 8 void run(const std::function<void()> &runner) {
9 //TODO use a job that runs in a thread?
9 QtConcurrent::run(runner); 10 QtConcurrent::run(runner);
10
11 // //FIXME we should be using a Job instead of a timer
12 // auto timer = new QTimer;
13 // timer->setSingleShot(true);
14 // QObject::connect(timer, &QTimer::timeout, runner);
15 // QObject::connect(timer, &QTimer::timeout, timer, &QObject::deleteLater);
16 // timer->start(0);
17 }; 11 };
18} // namespace async 12} // namespace async
19 13