GUI: modernize connect in ApplicationDialog
This commit is contained in:
parent
ea95398123
commit
4986ffa2f1
|
@ -35,8 +35,8 @@ ApplicationDialog::ApplicationDialog(const QString &title,
|
|||
mUI.setupUi(this);
|
||||
|
||||
connect(mUI.mButtonBrowse, SIGNAL(clicked()), this, SLOT(browse()));
|
||||
connect(mUI.mButtons, SIGNAL(accepted()), this, SLOT(ok()));
|
||||
connect(mUI.mButtons, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
connect(mUI.mButtons, &QDialogButtonBox::accepted, this, &ApplicationDialog::ok);
|
||||
connect(mUI.mButtons, &QDialogButtonBox::rejected, this, &ApplicationDialog::reject);
|
||||
mUI.mPath->setText(app.getPath());
|
||||
mUI.mName->setText(app.getName());
|
||||
mUI.mParameters->setText(app.getParameters());
|
||||
|
|
Loading…
Reference in New Issue