diff --git a/gui/statsdialog.cpp b/gui/statsdialog.cpp index 53a87be72..c46217213 100644 --- a/gui/statsdialog.cpp +++ b/gui/statsdialog.cpp @@ -34,8 +34,8 @@ StatsDialog::StatsDialog(QWidget *parent) { mUI.setupUi(this); - connect(mUI.mCopyToClipboard, SIGNAL(pressed()), this, SLOT(copyToClipboard())); - connect(mUI.mPDFexport, SIGNAL(pressed()), this, SLOT(pdfExport())); + connect(mUI.mCopyToClipboard, &QPushButton::pressed, this, &StatsDialog::copyToClipboard); + connect(mUI.mPDFexport, &QPushButton::pressed, this, &StatsDialog::pdfExport); } void StatsDialog::setProject(const ProjectFile* projectFile)