GUI: modernize connect in ApplicationDialog

This commit is contained in:
Daniel Marjamäki 2017-07-31 10:18:02 +02:00
parent ea95398123
commit 4986ffa2f1
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ ApplicationDialog::ApplicationDialog(const QString &title,
mUI.setupUi(this); mUI.setupUi(this);
connect(mUI.mButtonBrowse, SIGNAL(clicked()), this, SLOT(browse())); connect(mUI.mButtonBrowse, SIGNAL(clicked()), this, SLOT(browse()));
connect(mUI.mButtons, SIGNAL(accepted()), this, SLOT(ok())); connect(mUI.mButtons, &QDialogButtonBox::accepted, this, &ApplicationDialog::ok);
connect(mUI.mButtons, SIGNAL(rejected()), this, SLOT(reject())); connect(mUI.mButtons, &QDialogButtonBox::rejected, this, &ApplicationDialog::reject);
mUI.mPath->setText(app.getPath()); mUI.mPath->setText(app.getPath());
mUI.mName->setText(app.getName()); mUI.mName->setText(app.getName());
mUI.mParameters->setText(app.getParameters()); mUI.mParameters->setText(app.getParameters());