| 165 | } |
| 166 | |
| 167 | void 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 | |
| 175 | SettingInputError WidgetSettingFloat::ProcessInputValue() { return this->data().ProcessInput(this->value_buffer); } |
| 176 |
no test coverage detected