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

Method toggleOptions

src/frontend/worksheet/ExportWorksheetDialog.cpp:290–298  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

288 Shows/hides the GroupBox with export options in this dialog.
289*/
290void ExportWorksheetDialog::toggleOptions() {
291 m_showOptions = !m_showOptions;
292 ui->gbOptions->setVisible(m_showOptions);
293 m_showOptions ? m_showOptionsButton->setText(i18n("Hide Options")) : m_showOptionsButton->setText(i18n("Show Options"));
294
295 // resize the dialog
296 layout()->activate();
297 resize(QSize(this->width(), 0).expandedTo(minimumSize()));
298}
299
300/*!
301 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