本文整理汇总了C++中OptionsDialog::exec方法的典型用法代码示例。如果您正苦于以下问题:C++ OptionsDialog::exec方法的具体用法?C++ OptionsDialog::exec怎么用?C++ OptionsDialog::exec使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OptionsDialog
的用法示例。
在下文中一共展示了OptionsDialog::exec方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: optionsClicked
void BitcoinGUI::optionsClicked()
{
if(!clientModel || !clientModel->getOptionsModel())
return;
OptionsDialog dlg;
dlg.setModel(clientModel->getOptionsModel());
dlg.exec();
}
示例2: on_actionComponent_triggered
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: on_recentsList_itemDoubleClicked
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();
}
示例4: onOptions
/*----------------------------------------------------------------------------*/
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: on_loadFileButton_clicked
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: optionsClicked
void BitcoinGUI::optionsClicked()
{
OptionsDialog dlg;
dlg.setModel(model->getOptionsModel());
dlg.exec();
}
示例7: on_btnOptions_clicked
void MainDialog::on_btnOptions_clicked()
{
OptionsDialog *od = new OptionsDialog(this);
od->exec();
}
示例8: on_actionOptions_triggered
void MainWindow::on_actionOptions_triggered() {
OptionsDialog optDlg;
optDlg.exec();
}
示例9: main
int main( int argc, char ** argv )
{
QApplication a( argc, argv );
OptionsDialog dlg;
return dlg.exec();
}
示例10: showOptions
void BrailleMusicEditor::showOptions() {
OptionsDialog optionsDialog;
int retval = optionsDialog.exec();
if (retval == QDialog::Accepted) { optionsDialog.saveSettings(); }
}