| 175 | SettingInputError WidgetSettingFloat::ProcessInputValue() { return this->data().ProcessInput(this->value_buffer); } |
| 176 | |
| 177 | void WidgetSettingFloat::OnTextEdited(const QString& new_value) { |
| 178 | this->timer_error->stop(); |
| 179 | this->timer_valid->stop(); |
| 180 | |
| 181 | this->value_buffer = new_value.toStdString(); |
| 182 | this->Resize(); |
| 183 | |
| 184 | if (this->ProcessInputValue() == SETTING_INPUT_NO_ERROR) { |
| 185 | this->field->setPalette(default_palette); |
| 186 | this->timer_valid->start(500); |
| 187 | } else { |
| 188 | this->timer_error->start(2000); |
| 189 | } |
| 190 | |
| 191 | emit refreshEnableOnly(); |
| 192 | } |
| 193 | |
| 194 | SettingDataFloat& WidgetSettingFloat::data() { |
| 195 | SettingDataFloat* data = FindSetting<SettingDataFloat>(this->data_set, this->meta.key.c_str()); |
nothing calls this directly
no test coverage detected