MCPcopy Create free account
hub / github.com/KDE/labplot / previewChanged

Method previewChanged

src/frontend/spreadsheet/AddSubtractValueDialog.cpp:474–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void 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
486void AddSubtractValueDialog::updateSpacer(bool add) {
487 if (add) {

Callers

nothing calls this directly

Calls 3

activateMethod · 0.80
setVisibleMethod · 0.45
widthMethod · 0.45

Tested by

no test coverage detected