示例#1
0
void BitcoinGUI::optionsClicked()
{
    if(!clientModel || !clientModel->getOptionsModel())
        return;
    OptionsDialog dlg;
    dlg.setModel(clientModel->getOptionsModel());
    dlg.exec();
}
示例#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());
    }
}
示例#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());
  }
}
示例#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();
    }
}
示例#6
0
void BitcoinGUI::optionsClicked()
{
    OptionsDialog dlg;
    dlg.setModel(model->getOptionsModel());
    dlg.exec();
}
示例#7
0
void MainDialog::on_btnOptions_clicked()
{
    OptionsDialog *od = new OptionsDialog(this);
    od->exec();
}
示例#8
0
void MainWindow::on_actionOptions_triggered() {
    OptionsDialog optDlg;
    optDlg.exec();
}
示例#9
0
int main( int argc, char ** argv )
{
    QApplication a( argc, argv );
    OptionsDialog dlg;
    return dlg.exec();
}
示例#10
0
文件: mainwindow.cpp 项目: mlang/bmc
void BrailleMusicEditor::showOptions() {
  OptionsDialog optionsDialog;
  int retval = optionsDialog.exec();
  if (retval == QDialog::Accepted) { optionsDialog.saveSettings(); }
}