Esempio n. 1
0
void BitcoinGUI::optionsClicked()
{
    if(!clientModel || !clientModel->getOptionsModel())
        return;
    OptionsDialog dlg;
    dlg.setModel(clientModel->getOptionsModel());
    dlg.exec();
}
Esempio n. 2
0
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());
    }
}
Esempio n. 3
0
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());
  }
}
Esempio n. 5
0
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();
    }
}
Esempio n. 6
0
void BitcoinGUI::optionsClicked()
{
    OptionsDialog dlg;
    dlg.setModel(model->getOptionsModel());
    dlg.exec();
}
Esempio n. 7
0
void MainDialog::on_btnOptions_clicked()
{
    OptionsDialog *od = new OptionsDialog(this);
    od->exec();
}
Esempio n. 8
0
void MainWindow::on_actionOptions_triggered() {
    OptionsDialog optDlg;
    optDlg.exec();
}
Esempio n. 9
0
int main( int argc, char ** argv )
{
    QApplication a( argc, argv );
    OptionsDialog dlg;
    return dlg.exec();
}
Esempio n. 10
0
void BrailleMusicEditor::showOptions() {
  OptionsDialog optionsDialog;
  int retval = optionsDialog.exec();
  if (retval == QDialog::Accepted) { optionsDialog.saveSettings(); }
}