|
|
|
|
69
|
unitBox.addItem("oz");
|
69
|
unitBox.addItem("oz");
|
70
|
unitBox.addItem("lb");
|
70
|
unitBox.addItem("lb");
|
71
|
unitBox.currentIndex = (QSettings.value("script/batch_unit", unitBox.findText("lb")));
|
71
|
unitBox.currentIndex = (QSettings.value("script/batch_unit", unitBox.findText("lb")));
|
|
|
72
|
+ unitBox['currentIndexChanged(int)'].connect(function() {
|
|
|
73
|
+ QSettings.setValue("script/batch_unit", unitBox.currentIndex);
|
|
|
74
|
+ });
|
72
|
var machine = findChildObject(this, "machine");
|
75
|
var machine = findChildObject(this, "machine");
|
73
|
machine.setText(selectedRoasterName + " (" + selectedRoasterID + ")");
|
76
|
machine.setText(selectedRoasterName + " (" + selectedRoasterID + ")");
|
74
|
var newMenu = findChildObject(this, 'new');
|
77
|
var newMenu = findChildObject(this, 'new');
|