void CIMainWindow::on_actionConfiguration_triggered() { SettingDialog * dialog = new SettingDialog(this); dialog->setFixedSize(850, 500); dialog->exec(); readSettings(); }
void CustomDialog::openSubDialog( QTableWidgetItem* itm ) { int rprow = tw->row(itm); RichParameter *defPar = defParSet.findParameter(vrp[rprow]->name); SettingDialog* setdial = new SettingDialog(vrp[rprow],defPar,this); connect(setdial,SIGNAL(applySettingSignal()),this,SIGNAL(applyCustomSetting())); connect(setdial,SIGNAL(applySettingSignal()),this,SLOT(updateSettings())); setdial->exec(); delete setdial; }
void MainWindow::on_actionSetting_triggered() { SettingDialog dialog; dialog.SetMargin(img_margin_); dialog.SetSpacing(img_spacing_); int dialogResult = dialog.exec(); if(dialogResult == QDialog::Accepted) { img_spacing_ = dialog.GetSpacing(); img_margin_ = dialog.GetMargin(); } }
void SettingMenuController::showSettingDialog() { MainWindow::getInstance()->show(); SettingDialog* settingDialog = new SettingDialog; settingDialog->exec(); }
void ScvRipper::setting() { SettingDialog* s = new SettingDialog(this); s->show(); }
void MainWindow::showSettingDlg() { SettingDialog* settingDlg = new SettingDialog(this); settingDlg->exec(); }