diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2022-10-26 20:42:05 +0200 |
---|---|---|
committer | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2022-10-26 20:42:05 +0200 |
commit | cea50941344fb435de58e08e3086ada80c97cef7 (patch) | |
tree | c613d04a6fbda621bdc8f7d829038dd93171bfe8 | |
parent | 615dd097b7a03c73d0c9c922a652287d1e8a7466 (diff) |
Qt graphs working
-rw-r--r-- | client/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mainwindow.cpp b/client/mainwindow.cpp index cc19b53..e1736e6 100644 --- a/client/mainwindow.cpp +++ b/client/mainwindow.cpp @@ -46,7 +46,7 @@ void MainWindow::drawGraph(){ if(dbRef.open()){ QSqlQuery queryGraphData; // queryGraphData.exec("select `tblMain`.`ID`, `temperature`, `humidity`, `pressure` FROM `tblMain` ORDER BY `tblMain`.`ID` DESC limit 16;"); - queryGraphData.exec("select * FROM `tblMain` ORDER BY `tblMain`.`ID` ASC limit 16;"); + queryGraphData.exec("select * FROM `tblMain` ORDER BY `tblMain`.`ID` DESC limit 190;"); for (int i = 0; queryGraphData.next(); ++i) { // int time = queryGraphData.value(4).toTime().hour()*100 + queryGraphData.value(4).toTime().minute(); |