summaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/common/threadwitheventloop.h
diff options
context:
space:
mode:
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/common/threadwitheventloop.h')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/common/threadwitheventloop.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/common/threadwitheventloop.h b/SQLiteStudio3/coreSQLiteStudio/common/threadwitheventloop.h
new file mode 100644
index 0000000..ef0629a
--- /dev/null
+++ b/SQLiteStudio3/coreSQLiteStudio/common/threadwitheventloop.h
@@ -0,0 +1,19 @@
+#ifndef THREADWITHEVENTLOOP_H
+#define THREADWITHEVENTLOOP_H
+
+#include <QObject>
+#include <QThread>
+
+class ThreadWithEventLoop : public QThread
+{
+ Q_OBJECT
+
+ public:
+ ThreadWithEventLoop(QObject* parent = nullptr);
+ ~ThreadWithEventLoop();
+
+ protected:
+ void run() Q_DECL_OVERRIDE;
+};
+
+#endif // THREADWITHEVENTLOOP_H