/** * Handles the "Settings->Configure KScope..." command. * Displays the prferences dialog, which allows the user to set different * configuration parameters for KScope. */ void KScope::slotConfigure() { PreferencesDlg dlg; // Apply the preferences if either the "Apply" or the "OK" buttons are // clicked connect(&dlg, SIGNAL(applyPref()), this, SLOT(slotApplyPref())); // Show the dialog if (dlg.exec() == QDialog::Accepted) { // Verify Cscope's installation verifyCscope(); } }
void MainWindow::on_actionPreferences_triggered() { PreferencesDlg *dlg = new PreferencesDlg (this); connect (dlg, SIGNAL(accepted()), SLOT(slotSettingsChanged())); dlg->exec(); }