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

Method OnTextEdited

vkconfig_gui/widget_setting_frames.cpp:147–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145SettingInputError WidgetSettingFrames::ProcessInputValue() { return this->data().ProcessInput(this->value_buffer); }
146
147void 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
162SettingDataFrames& WidgetSettingFrames::data() {
163 SettingDataFrames* data = FindSetting<SettingDataFrames>(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