| 145 | SettingInputError WidgetSettingFrames::ProcessInputValue() { return this->data().ProcessInput(this->value_buffer); } |
| 146 | |
| 147 | void WidgetSettingFrames::OnTextEdited(const QString& new_value) { |
| 148 | this->timer_error->stop(); |
| 149 | this->timer_valid->stop(); |
| 150 | |
| 151 | this->value_buffer = new_value.toStdString(); |
| 152 | this->Resize(); |
| 153 | |
| 154 | if (this->ProcessInputValue() == SETTING_INPUT_NO_ERROR) { |
| 155 | this->field->setPalette(default_palette); |
| 156 | this->timer_valid->start(500); |
| 157 | } else { |
| 158 | this->timer_error->start(3000); |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | SettingDataFrames& WidgetSettingFrames::data() { |
| 163 | SettingDataFrames* data = FindSetting<SettingDataFrames>(this->data_set, this->meta.key.c_str()); |
nothing calls this directly
no test coverage detected