| 472 | } |
| 473 | |
| 474 | void AddSubtractValueDialog::previewChanged(bool state) { |
| 475 | bool visible = state && (m_operation == Add || m_operation == Subtract || m_operation == SubtractBaseline); |
| 476 | updateSpacer(!visible); |
| 477 | |
| 478 | ui.framePreview->setVisible(visible); |
| 479 | updatePreview(); |
| 480 | |
| 481 | // resize the dialog |
| 482 | layout()->activate(); |
| 483 | resize(QSize(this->width(), 0).expandedTo(minimumSize())); |
| 484 | } |
| 485 | |
| 486 | void AddSubtractValueDialog::updateSpacer(bool add) { |
| 487 | if (add) { |
nothing calls this directly
no test coverage detected