src/DetailFermenter.cpp

changeset 333
499c95108bbd
parent 328
ee2c8b29f389
child 391
42936c86cbac
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 "DetailFermenter.h" 17 #include "DetailFermenter.h"
18 #include "ChartFermenter.h"
18 #include "../ui/ui_DetailFermenter.h" 19 #include "../ui/ui_DetailFermenter.h"
19 #include "global.h" 20 #include "global.h"
20 #include "MainWindow.h" 21 #include "MainWindow.h"
21 22
22 23
84 connect(ui->modeButton2, SIGNAL(clicked()), this, SLOT(button2_pressed())); 85 connect(ui->modeButton2, SIGNAL(clicked()), this, SLOT(button2_pressed()));
85 connect(ui->modeEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailFermenter::mode_changed); 86 connect(ui->modeEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailFermenter::mode_changed);
86 connect(ui->stageEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailFermenter::stage_changed); 87 connect(ui->stageEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailFermenter::stage_changed);
87 connect(ui->codePick, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailFermenter::code_changed); 88 connect(ui->codePick, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailFermenter::code_changed);
88 connect(ui->profilePick, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailFermenter::profile_changed); 89 connect(ui->profilePick, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DetailFermenter::profile_changed);
90 connect(ui->logButton, SIGNAL(clicked()), this, SLOT(on_ChartButton_clicked()));
89 connect(parent, SIGNAL(updateFermenter(QString)), this, SLOT(refreshFermenter(QString))); 91 connect(parent, SIGNAL(updateFermenter(QString)), this, SLOT(refreshFermenter(QString)));
90 emit refreshTable(); 92 emit refreshTable();
91 } 93 }
92 94
93 95
330 emit refreshTable(); 332 emit refreshTable();
331 } 333 }
332 } 334 }
333 335
334 336
337 void DetailFermenter::on_ChartButton_clicked()
338 {
339 ChartFermenter dialog(_beercode, _beername, this);
340 }
341
342
335 void DetailFermenter::on_quitButton_clicked() 343 void DetailFermenter::on_quitButton_clicked()
336 { 344 {
337 this->close(); 345 this->close();
338 this->setResult(1); 346 this->setResult(1);
339 } 347 }

mercurial