mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
19 lines
293 B
C++
19 lines
293 B
C++
#ifndef LAMBDAQRUNNABLE_H
|
|
#define LAMBDAQRUNNABLE_H
|
|
|
|
#include <QRunnable>
|
|
#include <functional>
|
|
|
|
class LambdaQRunnable : public QRunnable
|
|
{
|
|
public:
|
|
LambdaQRunnable(std::function<void()> action);
|
|
|
|
void run();
|
|
|
|
private:
|
|
std::function<void()> action;
|
|
};
|
|
|
|
#endif // LAMBDAQRUNNABLE_H
|