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
2017-01-18 04:52:47 +01:00
#include <QRunnable>
#include <functional>
2017-01-03 21:19:33 +01:00
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