src/Setup.cpp

changeset 430
ef2638cfc1b7
parent 411
c78f8cf11849
equal deleted inserted replaced
429:4aac0b672667 430:ef2638cfc1b7
63 mashhopLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 63 mashhopLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
64 mashhopLabel->setText(tr("Mash Hop factor:")); 64 mashhopLabel->setText(tr("Mash Hop factor:"));
65 65
66 pelletLabel = new QLabel(topWidget); 66 pelletLabel = new QLabel(topWidget);
67 pelletLabel->setObjectName(QString::fromUtf8("pelletLabel")); 67 pelletLabel->setObjectName(QString::fromUtf8("pelletLabel"));
68 pelletLabel->setGeometry(QRect(10, 210, 181, 20)); 68 pelletLabel->setGeometry(QRect(10, 240, 181, 20));
69 pelletLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 69 pelletLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
70 pelletLabel->setText(tr("Hop Pellets utilisation:")); 70 pelletLabel->setText(tr("Hop Pellets utilisation:"));
71 71
72 hopplugLabel = new QLabel(topWidget); 72 hopplugLabel = new QLabel(topWidget);
73 hopplugLabel->setObjectName(QString::fromUtf8("plugsLabel")); 73 hopplugLabel->setObjectName(QString::fromUtf8("plugsLabel"));
74 hopplugLabel->setGeometry(QRect(10, 240, 181, 20)); 74 hopplugLabel->setGeometry(QRect(10, 270, 181, 20));
75 hopplugLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 75 hopplugLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
76 hopplugLabel->setText(tr("Hop Plugs utilisation:")); 76 hopplugLabel->setText(tr("Hop Plugs utilisation:"));
77 77
78 leafLabel = new QLabel(topWidget); 78 leafLabel = new QLabel(topWidget);
79 leafLabel->setObjectName(QString::fromUtf8("leafLabel")); 79 leafLabel->setObjectName(QString::fromUtf8("leafLabel"));
80 leafLabel->setGeometry(QRect(10, 270, 181, 20)); 80 leafLabel->setGeometry(QRect(10, 300, 181, 20));
81 leafLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 81 leafLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
82 leafLabel->setText(tr("Hop Leafs utilisation:")); 82 leafLabel->setText(tr("Hop Leafs utilisation:"));
83 83
84 wethopLabel = new QLabel(topWidget); 84 wethopLabel = new QLabel(topWidget);
85 wethopLabel->setObjectName(QString::fromUtf8("wethopLabel")); 85 wethopLabel->setObjectName(QString::fromUtf8("wethopLabel"));
86 wethopLabel->setGeometry(QRect(10, 300, 181, 20)); 86 wethopLabel->setGeometry(QRect(10, 330, 181, 20));
87 wethopLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 87 wethopLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
88 wethopLabel->setText(tr("Wet Hop utilisation:")); 88 wethopLabel->setText(tr("Wet Hop utilisation:"));
89 89
90 cryohopLabel = new QLabel(topWidget); 90 cryohopLabel = new QLabel(topWidget);
91 cryohopLabel->setObjectName(QString::fromUtf8("cryohopLabel")); 91 cryohopLabel->setObjectName(QString::fromUtf8("cryohopLabel"));
92 cryohopLabel->setGeometry(QRect(10, 330, 181, 20)); 92 cryohopLabel->setGeometry(QRect(10, 360, 181, 20));
93 cryohopLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 93 cryohopLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
94 cryohopLabel->setText(tr("Cryo Hop\302\256 utilisation:")); 94 cryohopLabel->setText(tr("Cryo Hop\302\256 utilisation:"));
95 95
96 extractLabel = new QLabel(topWidget); 96 extractLabel = new QLabel(topWidget);
97 extractLabel->setObjectName(QString::fromUtf8("extractLabel")); 97 extractLabel->setObjectName(QString::fromUtf8("extractLabel"));
98 extractLabel->setGeometry(QRect(10, 360, 181, 20)); 98 extractLabel->setGeometry(QRect(10, 390, 181, 20));
99 extractLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 99 extractLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
100 extractLabel->setText(tr("CO2 Hop Extract utilisation:")); 100 extractLabel->setText(tr("CO2 Hop Extract utilisation:"));
101 101
102 hapelletLabel = new QLabel(topWidget);
103 hapelletLabel->setObjectName(QString::fromUtf8("hapelletLabel"));
104 hapelletLabel->setGeometry(QRect(380, 240, 181, 20));
105 hapelletLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
106 hapelletLabel->setText(tr("Hop Pellets water absorption:"));
107
108 hahopplugLabel = new QLabel(topWidget);
109 hahopplugLabel->setObjectName(QString::fromUtf8("haplugsLabel"));
110 hahopplugLabel->setGeometry(QRect(380, 270, 181, 20));
111 hahopplugLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
112 hahopplugLabel->setText(tr("Hop Plugs water absorption:"));
113
114 haleafLabel = new QLabel(topWidget);
115 haleafLabel->setObjectName(QString::fromUtf8("haleafLabel"));
116 haleafLabel->setGeometry(QRect(380, 300, 181, 20));
117 haleafLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
118 haleafLabel->setText(tr("Hop Leafs water absorption:"));
119
120 hawethopLabel = new QLabel(topWidget);
121 hawethopLabel->setObjectName(QString::fromUtf8("hawethopLabel"));
122 hawethopLabel->setGeometry(QRect(380, 330, 181, 20));
123 hawethopLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
124 hawethopLabel->setText(tr("Wet Hop water absorption:"));
125
126 hacryohopLabel = new QLabel(topWidget);
127 hacryohopLabel->setObjectName(QString::fromUtf8("hacryohopLabel"));
128 hacryohopLabel->setGeometry(QRect(380, 360, 181, 20));
129 hacryohopLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
130 hacryohopLabel->setText(tr("Cryo Hop\302\256 water absorption:"));
102 131
103 fwhEdit = new QSpinBox(topWidget); 132 fwhEdit = new QSpinBox(topWidget);
104 fwhEdit->setObjectName(QString::fromUtf8("fwhEdit")); 133 fwhEdit->setObjectName(QString::fromUtf8("fwhEdit"));
105 fwhEdit->setGeometry(QRect(210, 120, 81, 24)); 134 fwhEdit->setGeometry(QRect(210, 120, 81, 24));
106 fwhEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 135 fwhEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
120 mashhopEdit->setToolTip(tr("The efficiency for Mash hopping.")); 149 mashhopEdit->setToolTip(tr("The efficiency for Mash hopping."));
121 mashhopEdit->setSuffix(tr("%")); 150 mashhopEdit->setSuffix(tr("%"));
122 151
123 pelletEdit = new QDoubleSpinBox(topWidget); 152 pelletEdit = new QDoubleSpinBox(topWidget);
124 pelletEdit->setObjectName(QString::fromUtf8("pelletEdit")); 153 pelletEdit->setObjectName(QString::fromUtf8("pelletEdit"));
125 pelletEdit->setGeometry(QRect(210, 210, 81, 24)); 154 pelletEdit->setGeometry(QRect(210, 240, 81, 24));
126 pelletEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 155 pelletEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
127 pelletEdit->setAccelerated(true); 156 pelletEdit->setAccelerated(true);
128 pelletEdit->setMaximum(100); 157 pelletEdit->setMaximum(100);
129 pelletEdit->setDecimals(1); 158 pelletEdit->setDecimals(1);
130 pelletEdit->setToolTip(tr("The utilisation for hop pellets, default 22")); 159 pelletEdit->setToolTip(tr("The utilisation for hop pellets, default 22"));
131 pelletEdit->setSuffix(tr("%")); 160 pelletEdit->setSuffix(tr("%"));
132 161
133 hopplugEdit = new QDoubleSpinBox(topWidget); 162 hopplugEdit = new QDoubleSpinBox(topWidget);
134 hopplugEdit->setObjectName(QString::fromUtf8("hopplugEdit")); 163 hopplugEdit->setObjectName(QString::fromUtf8("hopplugEdit"));
135 hopplugEdit->setGeometry(QRect(210, 240, 81, 24)); 164 hopplugEdit->setGeometry(QRect(210, 270, 81, 24));
136 hopplugEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 165 hopplugEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
137 hopplugEdit->setAccelerated(true); 166 hopplugEdit->setAccelerated(true);
138 hopplugEdit->setMaximum(100); 167 hopplugEdit->setMaximum(100);
139 hopplugEdit->setDecimals(1); 168 hopplugEdit->setDecimals(1);
140 hopplugEdit->setToolTip(tr("The utilisation for hop plugs, default 20.4")); 169 hopplugEdit->setToolTip(tr("The utilisation for hop plugs, default 20.4"));
141 hopplugEdit->setSuffix(tr("%")); 170 hopplugEdit->setSuffix(tr("%"));
142 171
143 leafEdit = new QDoubleSpinBox(topWidget); 172 leafEdit = new QDoubleSpinBox(topWidget);
144 leafEdit->setObjectName(QString::fromUtf8("leafEdit")); 173 leafEdit->setObjectName(QString::fromUtf8("leafEdit"));
145 leafEdit->setGeometry(QRect(210, 270, 81, 24)); 174 leafEdit->setGeometry(QRect(210, 300, 81, 24));
146 leafEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 175 leafEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
147 leafEdit->setAccelerated(true); 176 leafEdit->setAccelerated(true);
148 leafEdit->setMaximum(100); 177 leafEdit->setMaximum(100);
149 leafEdit->setDecimals(1); 178 leafEdit->setDecimals(1);
150 leafEdit->setToolTip(tr("The utilisation for hop leafs, default 20")); 179 leafEdit->setToolTip(tr("The utilisation for hop leafs, default 20"));
151 leafEdit->setSuffix(tr("%")); 180 leafEdit->setSuffix(tr("%"));
152 181
153 wethopEdit = new QDoubleSpinBox(topWidget); 182 wethopEdit = new QDoubleSpinBox(topWidget);
154 wethopEdit->setObjectName(QString::fromUtf8("wethopEdit")); 183 wethopEdit->setObjectName(QString::fromUtf8("wethopEdit"));
155 wethopEdit->setGeometry(QRect(210, 300, 81, 24)); 184 wethopEdit->setGeometry(QRect(210, 330, 81, 24));
156 wethopEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 185 wethopEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
157 wethopEdit->setAccelerated(true); 186 wethopEdit->setAccelerated(true);
158 wethopEdit->setMaximum(100); 187 wethopEdit->setMaximum(100);
159 wethopEdit->setDecimals(1); 188 wethopEdit->setDecimals(1);
160 wethopEdit->setToolTip(tr("The uyilisation for fresh hops, default 3.6")); 189 wethopEdit->setToolTip(tr("The utilisation for fresh hops, default 3.6"));
161 wethopEdit->setSuffix(tr("%")); 190 wethopEdit->setSuffix(tr("%"));
162 191
163 cryohopEdit = new QDoubleSpinBox(topWidget); 192 cryohopEdit = new QDoubleSpinBox(topWidget);
164 cryohopEdit->setObjectName(QString::fromUtf8("cryohopEdit")); 193 cryohopEdit->setObjectName(QString::fromUtf8("cryohopEdit"));
165 cryohopEdit->setGeometry(QRect(210, 330, 81, 24)); 194 cryohopEdit->setGeometry(QRect(210, 360, 81, 24));
166 cryohopEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 195 cryohopEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
167 cryohopEdit->setAccelerated(true); 196 cryohopEdit->setAccelerated(true);
168 cryohopEdit->setMaximum(100); 197 cryohopEdit->setMaximum(100);
169 cryohopEdit->setDecimals(1); 198 cryohopEdit->setDecimals(1);
170 cryohopEdit->setToolTip(tr("The utilisation for using Cryo Hop\302\256, default 50")); 199 cryohopEdit->setToolTip(tr("The utilisation for using Cryo Hop\302\256, default 50"));
171 cryohopEdit->setSuffix(tr("%")); 200 cryohopEdit->setSuffix(tr("%"));
172 201
173 extractEdit = new QDoubleSpinBox(topWidget); 202 extractEdit = new QDoubleSpinBox(topWidget);
174 extractEdit->setObjectName(QString::fromUtf8("extractEdit")); 203 extractEdit->setObjectName(QString::fromUtf8("extractEdit"));
175 extractEdit->setGeometry(QRect(210, 360, 81, 24)); 204 extractEdit->setGeometry(QRect(210, 390, 81, 24));
176 extractEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 205 extractEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
177 extractEdit->setAccelerated(true); 206 extractEdit->setAccelerated(true);
178 extractEdit->setMaximum(100); 207 extractEdit->setMaximum(100);
179 extractEdit->setDecimals(1); 208 extractEdit->setDecimals(1);
180 extractEdit->setToolTip(tr("The utilisation for using CO2 hop extract, default 35")); 209 extractEdit->setToolTip(tr("The utilisation for using CO2 hop extract, default 35"));
267 heightEdit->setMinimum(-430); 296 heightEdit->setMinimum(-430);
268 heightEdit->setMaximum(8849); 297 heightEdit->setMaximum(8849);
269 heightEdit->setStepType(QAbstractSpinBox::DefaultStepType); 298 heightEdit->setStepType(QAbstractSpinBox::DefaultStepType);
270 heightEdit->setValue(0); 299 heightEdit->setValue(0);
271 heightEdit->setToolTip(tr("Height in meters above/below sealevel to calculate the exact boiling point and hop isomerizon.")); 300 heightEdit->setToolTip(tr("Height in meters above/below sealevel to calculate the exact boiling point and hop isomerizon."));
301
302 hapelletEdit = new QDoubleSpinBox(topWidget);
303 hapelletEdit->setObjectName(QString::fromUtf8("hapelletEdit"));
304 hapelletEdit->setGeometry(QRect(580, 240, 101, 24));
305 hapelletEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
306 hapelletEdit->setAccelerated(true);
307 hapelletEdit->setSingleStep(0.010000000000000);
308 hapelletEdit->setMaximum(20);
309 hapelletEdit->setDecimals(2);
310 hapelletEdit->setToolTip(tr("The water absorption by hop pellets, default 2.67"));
311 hapelletEdit->setSuffix(tr(" ml/gr"));
312
313 hahopplugEdit = new QDoubleSpinBox(topWidget);
314 hahopplugEdit->setObjectName(QString::fromUtf8("hahopplugEdit"));
315 hahopplugEdit->setGeometry(QRect(580, 270, 101, 24));
316 hahopplugEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
317 hahopplugEdit->setAccelerated(true);
318 hahopplugEdit->setSingleStep(0.010000000000000);
319 hahopplugEdit->setMaximum(20);
320 hahopplugEdit->setDecimals(2);
321 hahopplugEdit->setToolTip(tr("The water absorption by hop plugs, default 2.67"));
322 hahopplugEdit->setSuffix(tr(" ml/gr"));
323
324 haleafEdit = new QDoubleSpinBox(topWidget);
325 haleafEdit->setObjectName(QString::fromUtf8("haleafEdit"));
326 haleafEdit->setGeometry(QRect(580, 300, 101, 24));
327 haleafEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
328 haleafEdit->setAccelerated(true);
329 haleafEdit->setSingleStep(0.010000000000000);
330 haleafEdit->setMaximum(20);
331 haleafEdit->setDecimals(2);
332 haleafEdit->setToolTip(tr("The water absorption by hop leafs, default 6.01"));
333 haleafEdit->setSuffix(tr(" ml/gr"));
334
335 hawethopEdit = new QDoubleSpinBox(topWidget);
336 hawethopEdit->setObjectName(QString::fromUtf8("hawethopEdit"));
337 hawethopEdit->setGeometry(QRect(580, 330, 101, 24));
338 hawethopEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
339 hawethopEdit->setAccelerated(true);
340 hawethopEdit->setSingleStep(0.010000000000000);
341 hawethopEdit->setMaximum(20);
342 hawethopEdit->setDecimals(2);
343 hawethopEdit->setToolTip(tr("The water absorption by fresh hops, default 1.21"));
344 hawethopEdit->setSuffix(tr(" ml/gr"));
345
346 hacryohopEdit = new QDoubleSpinBox(topWidget);
347 hacryohopEdit->setObjectName(QString::fromUtf8("hacryohopEdit"));
348 hacryohopEdit->setGeometry(QRect(580, 360, 101, 24));
349 hacryohopEdit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
350 hacryohopEdit->setAccelerated(true);
351 hacryohopEdit->setSingleStep(0.010000000000000);
352 hacryohopEdit->setMaximum(20);
353 hacryohopEdit->setDecimals(2);
354 hacryohopEdit->setToolTip(tr("The water absorption by Cryo Hop\302\256, default 2.67"));
355 hacryohopEdit->setSuffix(tr(" ml/gr"));
272 356
273 colorEdit = new QComboBox(topWidget); 357 colorEdit = new QComboBox(topWidget);
274 colorEdit->setObjectName(QString::fromUtf8("colorEdit")); 358 colorEdit->setObjectName(QString::fromUtf8("colorEdit"));
275 colorEdit->setGeometry(QRect(940, 120, 161, 23)); 359 colorEdit->setGeometry(QRect(940, 120, 161, 23));
276 colorEdit->setMinimumContentsLength(4); 360 colorEdit->setMinimumContentsLength(4);
368 connect(extractEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed); 452 connect(extractEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed);
369 453
370 grainEdit->setValue(query.value("grain_absorption").toDouble()); 454 grainEdit->setValue(query.value("grain_absorption").toDouble());
371 brixEdit->setValue(query.value("brix_correction").toDouble()); 455 brixEdit->setValue(query.value("brix_correction").toDouble());
372 heightEdit->setValue(query.value("brewery_height").toInt()); 456 heightEdit->setValue(query.value("brewery_height").toInt());
457 hapelletEdit->setValue(query.value("ha_pellet").toDouble());
458 hahopplugEdit->setValue(query.value("ha_plug").toDouble());
459 haleafEdit->setValue(query.value("ha_leaf").toDouble());
460 hawethopEdit->setValue(query.value("ha_wethop").toDouble());
461 hacryohopEdit->setValue(query.value("ha_t45").toDouble());
373 connect(grainEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed); 462 connect(grainEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed);
374 connect(brixEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed); 463 connect(brixEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed);
375 connect(heightEdit, &QSpinBox::textChanged, this, &Setup::is_changed); 464 connect(heightEdit, &QSpinBox::textChanged, this, &Setup::is_changed);
465 connect(hapelletEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed);
466 connect(hahopplugEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed);
467 connect(haleafEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed);
468 connect(hawethopEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed);
469 connect(hacryohopEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed);
376 470
377 colorEdit->addItem("Morey"); 471 colorEdit->addItem("Morey");
378 colorEdit->addItem("Mosher"); 472 colorEdit->addItem("Mosher");
379 colorEdit->addItem("Daniels"); 473 colorEdit->addItem("Daniels");
380 colorEdit->addItem("Halberstadt"); 474 colorEdit->addItem("Halberstadt");
510 */ 604 */
511 query.prepare("UPDATE profile_setup SET brewery_name=:brewery, brewery_logo=:logo, factor_mashhop=:mashhop, factor_fwh=:fwh, " 605 query.prepare("UPDATE profile_setup SET brewery_name=:brewery, brewery_logo=:logo, factor_mashhop=:mashhop, factor_fwh=:fwh, "
512 "ut_pellet=:pellet, ut_plug=:plug, ut_leaf=:leaf, ut_wethop=:wet, ut_t45=:cryo, ut_co2extract=:extract, " 606 "ut_pellet=:pellet, ut_plug=:plug, ut_leaf=:leaf, ut_wethop=:wet, ut_t45=:cryo, ut_co2extract=:extract, "
513 "color_method=:color, ibu_method=:ibu, " 607 "color_method=:color, ibu_method=:ibu, "
514 "brix_correction=:brix, grain_absorption=:grain, default_water=:water, my_yeastlab=:yeast, " 608 "brix_correction=:brix, grain_absorption=:grain, default_water=:water, my_yeastlab=:yeast, "
515 "brewery_height=:height WHERE record='1'"); 609 "brewery_height=:height, "
610 "ha_pellet=:hapellet, ha_plug=:haplug, ha_leaf=:haleaf, ha_wethop=:hawet, ha_t45=:hacryo "
611 "WHERE record='1'");
516 query.bindValue(":brewery", this->breweryEdit->text()); 612 query.bindValue(":brewery", this->breweryEdit->text());
517 query.bindValue(":logo", logoByteArray); 613 query.bindValue(":logo", logoByteArray);
518 query.bindValue(":mashhop", this->mashhopEdit->value()); 614 query.bindValue(":mashhop", this->mashhopEdit->value());
519 query.bindValue(":fwh", this->fwhEdit->value()); 615 query.bindValue(":fwh", this->fwhEdit->value());
520 query.bindValue(":pellet", this->pelletEdit->value()); 616 query.bindValue(":pellet", this->pelletEdit->value());
528 query.bindValue(":brix", this->brixEdit->value()); 624 query.bindValue(":brix", this->brixEdit->value());
529 query.bindValue(":grain", this->grainEdit->value()); 625 query.bindValue(":grain", this->grainEdit->value());
530 query.bindValue(":water", record); 626 query.bindValue(":water", record);
531 query.bindValue(":yeast", this->yeastEdit->currentText()); 627 query.bindValue(":yeast", this->yeastEdit->currentText());
532 query.bindValue(":height", this->heightEdit->value()); 628 query.bindValue(":height", this->heightEdit->value());
629 query.bindValue(":hapellet", this->hapelletEdit->value());
630 query.bindValue(":haplug", this->hahopplugEdit->value());
631 query.bindValue(":haleaf", this->haleafEdit->value());
632 query.bindValue(":hawet", this->hawethopEdit->value());
633 query.bindValue(":hacryo", this->hacryohopEdit->value());
533 query.exec(); 634 query.exec();
534 if (query.lastError().isValid()) { 635 if (query.lastError().isValid()) {
535 qDebug() << "Setup Save error:" << query.lastError(); 636 qDebug() << "Setup Save error:" << query.lastError();
536 QMessageBox::warning(this, tr("Database error"), 637 QMessageBox::warning(this, tr("Database error"),
537 tr("MySQL error: %1\n%2\n%3") 638 tr("MySQL error: %1\n%2\n%3")

mercurial