mirror-chatterino2/lambdaqrunnable.h

19 lines
293 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-11 18:52:09 +01:00
LambdaQRunnable(std::function<void()> action);
2017-01-03 21:19:33 +01:00
void run();
private:
2017-01-11 18:52:09 +01:00
std::function<void()> action;
2017-01-03 21:19:33 +01:00
};
2017-01-11 18:52:09 +01:00
#endif // LAMBDAQRUNNABLE_H