void MainWindow::onStatus() { Connection *con = configHelper->connectionAt(ui->connectionView->currentIndex().row()); StatusDialog *statusDlg = new StatusDialog(con, this); connect(statusDlg, &StatusDialog::finished, statusDlg, &StatusDialog::deleteLater); statusDlg->exec(); }
void StatusSetDialog::editSet() { StatusDialog * atd = new StatusDialog( this ); atd->setStatusSet( mSet ); atd->exec(); delete atd; updateSets(); }
void StatusSetDialog::addSet() { StatusDialog * sd = new StatusDialog( this ); if( sd->exec() == QDialog::Accepted ) { mAdded += sd->statusSet(); updateSets(); } delete sd; }