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

Method Resize

vkconfig_gui/widget_setting_frames.cpp:137–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137void WidgetSettingFrames::Resize() {
138 const QFontMetrics fm = this->field->fontMetrics();
139 const int width = std::max(HorizontalAdvance(fm, this->field->text() + "00"), MIN_FIELD_WIDTH);
140
141 const QRect button_rect = QRect(this->resize.width() - width, 0, width, this->resize.height());
142 this->field->setGeometry(button_rect);
143}
144
145SettingInputError WidgetSettingFrames::ProcessInputValue() { return this->data().ProcessInput(this->value_buffer); }
146

Callers 3

resizeEventMethod · 0.95
OnErrorValueMethod · 0.95
OnTextEditedMethod · 0.95

Calls 1

HorizontalAdvanceFunction · 0.85

Tested by

no test coverage detected