void Content::comboBoxChanged (ComboBox* comboBoxThatHasChanged) { //[UsercomboBoxChanged_Pre] //[/UsercomboBoxChanged_Pre] if (comboBoxThatHasChanged == InputDevices) { //[UserComboBoxCode_InputDevices] -- add your combo box handling code here.. pushSettings(); //[/UserComboBoxCode_InputDevices] } else if (comboBoxThatHasChanged == OutputDevices) { //[UserComboBoxCode_OutputDevices] -- add your combo box handling code here.. pushSettings(); //[/UserComboBoxCode_OutputDevices] } else if (comboBoxThatHasChanged == SampleRate) { //[UserComboBoxCode_SampleRate] -- add your combo box handling code here.. pushSettings(); //[/UserComboBoxCode_SampleRate] } else if (comboBoxThatHasChanged == Server) { //[UserComboBoxCode_Server] -- add your combo box handling code here.. connectToServer(Server->getText()); //[/UserComboBoxCode_Server] } //[UsercomboBoxChanged_Post] //[/UsercomboBoxChanged_Post] }
void FillSettings::restoreToolSettings(const ToolProperties &cfg) { _ui->tolerance->setValue(cfg.intValue(props::tolerance)); _ui->expand->setValue(cfg.intValue(props::expand)); _ui->sizelimit->setValue(cfg.value(props::sizelimit).toDouble()); _ui->samplemerged->setChecked(cfg.boolValue(props::samplemerged)); _ui->fillunder->setChecked(cfg.boolValue(props::underfill)); _ui->erasermode->setChecked(cfg.boolValue(props::erasermode)); pushSettings(); }