void MainWindow::showForm(Analysis *analysis) { if (_currentOptionsWidget != NULL) { _currentOptionsWidget->hide(); _currentOptionsWidget = NULL; } _currentOptionsWidget = loadForm(analysis); if (_currentOptionsWidget != NULL) { Options *options = analysis->options(); _currentOptionsWidget->set(options, _dataSet); _currentOptionsWidget->show(); ui->optionsContentAreaLayout->addWidget(_currentOptionsWidget, 0, 0, Qt::AlignLeft | Qt::AlignTop); ui->pageOptions->show(); _buttonPanel->raise(); _buttonPanel->show(); adjustOptionsPanelWidth(); } }
void MainWindow::resizeEvent(QResizeEvent *event) { QMainWindow::resizeEvent(event); adjustOptionsPanelWidth(); }
void MainWindow::resizeEvent(QResizeEvent *event) { QMainWindow::resizeEvent(event); repositionButtonPanel(); adjustOptionsPanelWidth(); }