mirror-chatterino2/lambdaqrunnable.h

19 lines
294 B
C
Raw Normal View History

2017-01-03 21:19:33 +01:00
#ifndef LAMBDAQRUNNABLE_H
#define LAMBDAQRUNNABLE_H
#include "QRunnable"
#include "functional"
class LambdaQRunnable : public QRunnable
{
public:
2017-01-04 15:12:31 +01:00
LambdaQRunnable(std::function<void ()> action);
2017-01-03 21:19:33 +01:00
void run();
private:
2017-01-04 15:12:31 +01:00
std::function<void ()> action;
2017-01-03 21:19:33 +01:00
};
#endif // LAMBDAQRUNNABLE_H