13 * |
13 * |
14 * You should have received a copy of the GNU General Public License |
14 * You should have received a copy of the GNU General Public License |
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 */ |
16 */ |
17 #include "DetailCO2meter.h" |
17 #include "DetailCO2meter.h" |
|
18 #include "ChartCarbonate.h" |
18 #include "../ui/ui_DetailCO2meter.h" |
19 #include "../ui/ui_DetailCO2meter.h" |
19 #include "global.h" |
20 #include "global.h" |
20 #include "MainWindow.h" |
21 #include "MainWindow.h" |
21 |
22 |
22 |
23 |
51 while (query.next()) { |
52 while (query.next()) { |
52 ui->codePick->addItem(query.value("code").toString()+" - "+query.value("name").toString()); |
53 ui->codePick->addItem(query.value("code").toString()+" - "+query.value("name").toString()); |
53 } |
54 } |
54 |
55 |
55 connect(ui->codePick, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailCO2meter::code_changed); |
56 connect(ui->codePick, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailCO2meter::code_changed); |
|
57 connect(ui->logButton, SIGNAL(clicked()), this, SLOT(on_ChartButton_clicked())); |
56 connect(parent, SIGNAL(updateCO2meter(QString)), this, SLOT(refreshCO2meter(QString))); |
58 connect(parent, SIGNAL(updateCO2meter(QString)), this, SLOT(refreshCO2meter(QString))); |
57 emit refreshTable(); |
59 emit refreshTable(); |
58 } |
60 } |
59 |
61 |
60 |
62 |