src/DetailiSpindel.cpp

changeset 333
499c95108bbd
parent 329
b57299738980
child 416
3fac92cb1ee1
equal deleted inserted replaced
332:146874d7bb47 333:499c95108bbd
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 "DetailiSpindel.h" 17 #include "DetailiSpindel.h"
18 #include "ChartiSpindel.h"
18 #include "../ui/ui_DetailiSpindel.h" 19 #include "../ui/ui_DetailiSpindel.h"
19 #include "global.h" 20 #include "global.h"
20 #include "Utils.h" 21 #include "Utils.h"
21 #include "MainWindow.h" 22 #include "MainWindow.h"
22 23
51 ui->codePick->addItem(query.value("code").toString()+" - "+query.value("name").toString()); 52 ui->codePick->addItem(query.value("code").toString()+" - "+query.value("name").toString());
52 } 53 }
53 54
54 connect(ui->codePick, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailiSpindel::code_changed); 55 connect(ui->codePick, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailiSpindel::code_changed);
55 connect(ui->modeEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailiSpindel::mode_changed); 56 connect(ui->modeEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailiSpindel::mode_changed);
57 connect(ui->logButton, SIGNAL(clicked()), this, SLOT(on_ChartButton_clicked()));
56 connect(parent, SIGNAL(updateiSpindel(QString)), this, SLOT(refreshiSpindel(QString))); 58 connect(parent, SIGNAL(updateiSpindel(QString)), this, SLOT(refreshiSpindel(QString)));
57 emit refreshTable(); 59 emit refreshTable();
58 } 60 }
59 61
60 62
168 emit refreshTable(); 170 emit refreshTable();
169 } 171 }
170 } 172 }
171 173
172 174
175 void DetailiSpindel::on_ChartButton_clicked()
176 {
177 ChartiSpindel dialog(_beercode, _beername, this);
178 }
179
180
173 void DetailiSpindel::on_quitButton_clicked() 181 void DetailiSpindel::on_quitButton_clicked()
174 { 182 {
175 this->close(); 183 this->close();
176 this->setResult(1); 184 this->setResult(1);
177 } 185 }

mercurial