diff options
Diffstat (limited to 'progressdialog.cpp')
-rw-r--r-- | progressdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/progressdialog.cpp b/progressdialog.cpp index d95f1e1..0690d65 100644 --- a/progressdialog.cpp +++ b/progressdialog.cpp @@ -10,7 +10,7 @@ ProgressDialog::ProgressDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(par mProgress = new QProgressBar; mSum = new QLabel(tr("Wait for it...")); QPushButton *cancelBtn = new QPushButton(tr("Cancel")); - connect(cancelBtn, SIGNAL(clicked()), this, SIGNAL(cancelled())); + connect(cancelBtn, &QPushButton::clicked, this, &ProgressDialog::cancelled); QHBoxLayout *btnLayout = new QHBoxLayout; btnLayout->addStretch(); btnLayout->addWidget(cancelBtn); |