| 135 | } |
| 136 | |
| 137 | void 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 | |
| 145 | SettingInputError WidgetSettingFrames::ProcessInputValue() { return this->data().ProcessInput(this->value_buffer); } |
| 146 |
no test coverage detected