! Shows/hides the GroupBox with export options in this dialog. */
| 288 | Shows/hides the GroupBox with export options in this dialog. |
| 289 | */ |
| 290 | void 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. |
nothing calls this directly
no test coverage detected