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

Method Resize

vkconfig_gui/widget_setting_float.cpp:167–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void WidgetSettingFloat::Resize() {
168 const QFontMetrics fm = this->field->fontMetrics();
169 const int width = std::max(HorizontalAdvance(fm, this->field->text() + "00"), MIN_FIELD_WIDTH);
170
171 const QRect button_rect = QRect(this->resize.width() - width, 0, width, this->resize.height());
172 this->field->setGeometry(button_rect);
173}
174
175SettingInputError WidgetSettingFloat::ProcessInputValue() { return this->data().ProcessInput(this->value_buffer); }
176

Callers 3

resizeEventMethod · 0.95
OnErrorValueMethod · 0.95
OnTextEditedMethod · 0.95

Calls 1

HorizontalAdvanceFunction · 0.85

Tested by

no test coverage detected