src/EditFermentable.cpp

changeset 42
88e827ea7172
parent 24
684c6e74cc1b
child 60
0d65238ebedc
equal deleted inserted replaced
41:dc4b659a320b 42:88e827ea7172
61 ui->originEdit->setText(query.value(6).toString()); 61 ui->originEdit->setText(query.value(6).toString());
62 ui->supplierEdit->setText(query.value(7).toString()); 62 ui->supplierEdit->setText(query.value(7).toString());
63 ui->typeEdit->setCurrentIndex(query.value(2).toInt()); 63 ui->typeEdit->setCurrentIndex(query.value(2).toInt());
64 ui->graintypeEdit->setCurrentIndex(query.value(20).toInt()); 64 ui->graintypeEdit->setCurrentIndex(query.value(20).toInt());
65 ui->maxinbatchEdit->setValue(query.value(14).toDouble()); 65 ui->maxinbatchEdit->setValue(query.value(14).toDouble());
66 ui->mashEdit->setChecked(query.value(16).toInt() ? true:false); 66 ui->mashEdit->setChecked(query.value(15).toInt() ? true:false);
67 ui->addafterEdit->setChecked(query.value(5).toInt() ? true:false); 67 ui->addafterEdit->setChecked(query.value(5).toInt() ? true:false);
68 ui->addedEdit->setCurrentIndex(query.value(17).toInt()); 68 ui->addedEdit->setCurrentIndex(query.value(17).toInt());
69 ui->alwaysEdit->setChecked(query.value(5).toInt() ? true:false); 69 ui->alwaysEdit->setChecked(query.value(5).toInt() ? true:false);
70 ui->inventoryEdit->setValue(query.value(21).toDouble()); 70 ui->inventoryEdit->setValue(query.value(21).toDouble());
71 ui->costEdit->setValue(query.value(22).toDouble()); 71 ui->costEdit->setValue(query.value(22).toDouble());

mercurial