GUI: Refactor Qt Signal/Slots to the new syntax

This commit is contained in:
Rudolf Grauberger 2017-08-13 13:35:19 +02:00 committed by Daniel Marjamäki
parent 3e7f4c214d
commit 89cf19fdc1
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ ApplicationDialog::ApplicationDialog(const QString &title,
{
mUI.setupUi(this);
connect(mUI.mButtonBrowse, SIGNAL(clicked()), this, SLOT(browse()));
connect(mUI.mButtonBrowse, &QPushButton::clicked, this, &ApplicationDialog::browse);
connect(mUI.mButtons, &QDialogButtonBox::accepted, this, &ApplicationDialog::ok);
connect(mUI.mButtons, &QDialogButtonBox::rejected, this, &ApplicationDialog::reject);
mUI.mPath->setText(app.getPath());