void BitcoinGUI::optionsClicked() { if(!clientModel || !clientModel->getOptionsModel()) return; OptionsDialog dlg; dlg.setModel(clientModel->getOptionsModel()); dlg.exec(); }
void Controls::on_actionComponent_triggered() { OptionsDialog *od = new OptionsDialog(m_model->fullPath(), m_model->components(), this); od->setAttribute(Qt::WA_DeleteOnClose); int result = od->exec(); if (result == QDialog::Accepted) { emit openFile(m_model->fullPath()); } }
void NewFileDialog::on_recentsList_itemDoubleClicked(QListWidgetItem *item) { // Get selected item to send to options dialog QVariant data = item->data( Qt::UserRole ); QString sitem = data.toString(); // Close dialog and open OptionsDialog close(); OptionsDialog* o = new OptionsDialog(nullptr); o->setFilename (sitem, this->strippedName(sitem)); o->exec(); }
/*----------------------------------------------------------------------------*/ void MeasureWindow::onOptions() { OptionsDialog dlg; if(dlg.exec() == QDialog::Accepted) { ui->retranslateUi(this); disconnect(database, SIGNAL(dbError(QString))); connect(database, SIGNAL(dbError(QString)), this, SLOT(onDatabaseError())); onProfileChanged(ui->profileCombo->currentIndex()); onStatusChanged(controller->status()); } }
void NewFileDialog::on_loadFileButton_clicked() { // Check that there is a file selected QString fname = ui->newFileEdit->text(); if (fname.isEmpty()) { QMessageBox msgBox; msgBox.setText("Select a new program or a previous one\nbefore continue"); msgBox.exec(); } else { // Close dialog and open OptionsDialog close(); OptionsDialog* o = new OptionsDialog(nullptr); o->setFilename (fname, this->strippedName(fname)); o->exec(); } }
void BitcoinGUI::optionsClicked() { OptionsDialog dlg; dlg.setModel(model->getOptionsModel()); dlg.exec(); }
void MainDialog::on_btnOptions_clicked() { OptionsDialog *od = new OptionsDialog(this); od->exec(); }
void MainWindow::on_actionOptions_triggered() { OptionsDialog optDlg; optDlg.exec(); }
int main( int argc, char ** argv ) { QApplication a( argc, argv ); OptionsDialog dlg; return dlg.exec(); }
void BrailleMusicEditor::showOptions() { OptionsDialog optionsDialog; int retval = optionsDialog.exec(); if (retval == QDialog::Accepted) { optionsDialog.saveSettings(); } }