From 955f5a7a8acbce7d2c16df798f855946fd71cacd Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 23 Nov 2018 16:39:53 +0100 Subject: Some more syntax fixes No functional changes. --- smdialog.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'smdialog.cpp') diff --git a/smdialog.cpp b/smdialog.cpp index bd6c3f6..380e7b9 100644 --- a/smdialog.cpp +++ b/smdialog.cpp @@ -28,9 +28,9 @@ SeriesPartsDialog::SeriesPartsDialog(QWidget *parent, Qt::WindowFlags f) : SmDia mPartno->setMinimum(0); mainLayout->addRow(tr("&Part no."), mPartno); mOk = new QPushButton(tr("Ok")); - connect(mOk, SIGNAL(clicked()), this, SLOT(accept())); + connect(mOk, &QPushButton::clicked, this, &SeriesPartsDialog::accept); mCancel = new QPushButton(tr("Cancel")); - connect(mCancel, SIGNAL(clicked()), this, SLOT(reject())); + connect(mCancel, &QPushButton::clicked, this, &SeriesPartsDialog::reject); mCancel->setDefault(true); QHBoxLayout *buttonLayout = new QHBoxLayout; buttonLayout->addStretch(); @@ -66,7 +66,7 @@ UnpackDialog::UnpackDialog(QWidget *parent, Qt::WindowFlags f) : SmDialog(parent mainLayout->addWidget(mOutput); QHBoxLayout *buttonLayout = new QHBoxLayout; mClose = new QPushButton(tr("Close")); - connect(mClose, SIGNAL(clicked()), this, SLOT(hide())); + connect(mClose, &QPushButton::clicked, this, &UnpackDialog::hide); buttonLayout->addStretch(); buttonLayout->addWidget(mClose); buttonLayout->addStretch(); @@ -74,9 +74,9 @@ UnpackDialog::UnpackDialog(QWidget *parent, Qt::WindowFlags f) : SmDialog(parent setLayout(mainLayout); mUnpacker = new Unpacker(this); - connect(mUnpacker, SIGNAL(outputRead(QByteArray)), this, SLOT(addProcOutput(QByteArray))); - connect(mUnpacker, SIGNAL(unpackStarted(QString)), this, SLOT(newPackage(QString))); - connect(mUnpacker, SIGNAL(unpackDone()), this, SLOT(unpackDone())); + connect(mUnpacker, &Unpacker::outputRead, this, &UnpackDialog::addProcOutput); + connect(mUnpacker, &Unpacker::unpackStarted, this, &UnpackDialog::newPackage); + connect(mUnpacker, &Unpacker::unpackDone, this, &UnpackDialog::unpackDone); } void UnpackDialog::setCurrentLabel(const QString &cur){ -- cgit v1.2.3-70-g09d2