summaryrefslogtreecommitdiffstats
path: root/smdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smdialog.cpp')
-rw-r--r--smdialog.cpp12
1 files changed, 6 insertions, 6 deletions
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){