aboutsummaryrefslogtreecommitdiff
path: root/client/mainwindow.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-05 20:57:10 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-05 20:57:10 +0200
commit4625b939aad3537bd130617944e01f5da693b23d (patch)
tree8cd4b9c94d9ca70b7386b369e16d81c659d01c6f /client/mainwindow.h
parent9c7f4e157f10aa58e4b78636a2f8556be4637a07 (diff)
initial merge of qt client
Diffstat (limited to 'client/mainwindow.h')
-rw-r--r--client/mainwindow.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/client/mainwindow.h b/client/mainwindow.h
new file mode 100644
index 0000000..1e73657
--- /dev/null
+++ b/client/mainwindow.h
@@ -0,0 +1,42 @@
+#pragma once
+
+#include <QMainWindow>
+
+//#include "database.h"
+#include "dbconnector.h"
+
+#include <QMessageBox>
+#include <QtSql>
+#include <QSqlDatabase>
+#include "main.h"
+
+
+QT_BEGIN_NAMESPACE
+namespace Ui { class MainWindow; }
+QT_END_NAMESPACE
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ MainWindow(QWidget *parent = nullptr);
+ ~MainWindow();
+
+private slots:
+ void on_actionAbout_triggered();
+
+ void on_pushButton_clicked();
+
+ void on_actionConnection_triggered();
+
+private:
+ Ui::MainWindow *ui;
+
+ dbConnector *_dbConenctor;
+// QSqlDatabase db;
+
+ QSqlQueryModel *pQueryModel;
+
+// Database database;
+};