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

Method toggleOptions

src/frontend/spreadsheet/ExportSpreadsheetDialog.cpp:358–366  ·  view source on GitHub ↗

! Shows/hides the GroupBox with export options in this dialog. */

Source from the content-addressed store, hash-verified

356 Shows/hides the GroupBox with export options in this dialog.
357*/
358void ExportSpreadsheetDialog::toggleOptions() {
359 m_showOptions = !m_showOptions;
360 ui->gbOptions->setVisible(m_showOptions);
361 m_showOptions ? m_showOptionsButton->setText(i18n("Hide Options")) : m_showOptionsButton->setText(i18n("Show Options"));
362
363 // resize the dialog
364 layout()->activate();
365 resize(QSize(this->width(), 0).expandedTo(minimumSize()));
366}
367
368/*!
369 opens a file dialog and lets the user select the file.

Callers

nothing calls this directly

Calls 4

activateMethod · 0.80
setVisibleMethod · 0.45
setTextMethod · 0.45
widthMethod · 0.45

Tested by

no test coverage detected