MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / OnTextEdited

Method OnTextEdited

vkconfig_gui/widget_setting_float.cpp:177–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175SettingInputError WidgetSettingFloat::ProcessInputValue() { return this->data().ProcessInput(this->value_buffer); }
176
177void 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
194SettingDataFloat& WidgetSettingFloat::data() {
195 SettingDataFloat* data = FindSetting<SettingDataFloat>(this->data_set, this->meta.key.c_str());

Callers

nothing calls this directly

Calls 2

ResizeMethod · 0.95
ProcessInputValueMethod · 0.95

Tested by

no test coverage detected