aboutsummaryrefslogtreecommitdiff
path: root/client/main.cpp
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2022-10-30 12:05:26 +0100
committerUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2022-10-30 12:05:26 +0100
commit2788f6d76bb9485bc800356424df210f0d6a86c7 (patch)
treed20cc0c2e516d1ec4c9a3b4658a3acb62aa04888 /client/main.cpp
parent8952e19f00e0930e53e3731fd30be5e2600d9fd6 (diff)
changed dbConnector to settings window
Diffstat (limited to 'client/main.cpp')
-rw-r--r--client/main.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/client/main.cpp b/client/main.cpp
index 267248c..b70733d 100644
--- a/client/main.cpp
+++ b/client/main.cpp
@@ -24,19 +24,19 @@ int main(int argc, char *argv[])
dbRef = QSqlDatabase::addDatabase("QMYSQL");
- QString input = "000e,1d,2f,28\n000d,1d,2f,28\n000c,1d,2f,29\n000b,1d,2f,28\n000a,1d,2f,2a";
- CSV_Import import;
+// QString input = "000e,1d,2f,28\n000d,1d,2f,28\n000c,1d,2f,29\n000b,1d,2f,28\n000a,1d,2f,2a";
+// CSV_Import import;
- QString output = "INSERT INTO `WSdb`.`tblMain` () VALUES ";
- QVector<QString> list = input.split("\n");
- for (int i = 0; i < list.size(); ++i) {
- output.append(import.csvToSql(list[i]));
- if (i+1 < list.size()){
- output.append(",");
- }
- }
- qDebug() << output;
+// QString output = "INSERT INTO `WSdb`.`tblMain` () VALUES ";
+// QVector<QString> list = input.split("\n");
+// for (int i = 0; i < list.size(); ++i) {
+// output.append(import.csvToSql(list[i]));
+// if (i+1 < list.size()){
+// output.append(",");
+// }
+// }
+// qDebug() << output;
w.show();
return a.exec();