#include "mainwindow.h" #include "ui_mainwindow.h" #include "QDebug" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); initializeGraphics(); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_spinBoxPeakSystemPower_valueChanged(double arg1) { } void MainWindow :: initializeGraphics() { for(auto entry : batteries)ui->comboBoxBatteryChemistry->addItem(entry.name); } void MainWindow::on_comboBoxBatteryChemistry_currentIndexChanged(int index) { m_battery.changeBatteryChemistry(index); } void MainWindow::on_actionactionSettings_triggered() { }