GUI: modernize connect in StatsDialog

This commit is contained in:
Daniel Marjamäki 2017-07-31 13:55:47 +02:00
parent ac13648d40
commit 9e234fa25c
1 changed files with 2 additions and 2 deletions

View File

@ -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)