-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfreeQueryThread.h
More file actions
36 lines (30 loc) · 812 Bytes
/
Copy pathfreeQueryThread.h
File metadata and controls
36 lines (30 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// Created by MacBook Pro on 12/14/20.
//
#ifndef FINAL_FREEQUERYTHREAD_H
#define FINAL_FREEQUERYTHREAD_H
#include <QThread>
#include <QString>
#include <QSqlDatabase>
#include <QSqlRecord>
#include <QSqlQuery>
#include <QSqlError>
#include <QWidgetItem>
#include <QMetaType>
#include "mainwindow.h"
class freeQueryThread: public QThread {
Q_OBJECT
public:
freeQueryThread(class MainWindow *window):window(window){
qRegisterMetaType< QVector<int> >("QVector<int>");
qRegisterMetaType< Qt::Orientation>("Qt::Orientation");
}
private:
void run();
class MainWindow *window;
//bool parse(QString querystr,QStringList &header);
signals:
void success(freeQueryThread *thread);
void fail(freeQueryThread *thread, int reason);
};
#endif //FINAL_FREEQUERYTHREAD_H