This commit is contained in:
fourtf
2017-01-03 21:19:33 +01:00
parent 4ccbc8d4e4
commit 2b4fa8071f
22 changed files with 463 additions and 23 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef LAMBDAQRUNNABLE_H
#define LAMBDAQRUNNABLE_H
#include "QRunnable"
#include "functional"
class LambdaQRunnable : public QRunnable
{
public:
LambdaQRunnable(std::function<bool ()> action);
void run();
private:
std::function<bool ()> action;
};
#endif // LAMBDAQRUNNABLE_H