summaryrefslogtreecommitdiffstats
path: root/src/qdbus/qdbusviewer/propertydialog.cpp
diff options
context:
space:
mode:
authorAlexander Akulich <akulichalexander@gmail.com>2018-03-12 22:26:48 +0300
committerAlexandr Akulich <akulichalexander@gmail.com>2018-04-03 07:08:39 +0000
commit29639d1d85ec6ec2968175d5435b5687d8b63562 (patch)
tree6ed8641fbafa036db7eb8d4c075a5e09bd8942b0 /src/qdbus/qdbusviewer/propertydialog.cpp
parent57568f98859a7836b75dd03f48c4687075d91631 (diff)
qdbusviewer: Port to Qt 5 signals & slot connection syntax
Change-Id: I23eb27bbca316fa4149983a239e38443b03647f1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/qdbus/qdbusviewer/propertydialog.cpp')
-rw-r--r--src/qdbus/qdbusviewer/propertydialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qdbus/qdbusviewer/propertydialog.cpp b/src/qdbus/qdbusviewer/propertydialog.cpp
index 8595babc1..d9c7837f3 100644
--- a/src/qdbus/qdbusviewer/propertydialog.cpp
+++ b/src/qdbus/qdbusviewer/propertydialog.cpp
@@ -46,8 +46,8 @@ PropertyDialog::PropertyDialog(QWidget *parent, Qt::WindowFlags f)
propertyTable->horizontalHeader()->setStretchLastSection(true);
propertyTable->setEditTriggers(QAbstractItemView::AllEditTriggers);
- connect(buttonBox, SIGNAL(accepted()), SLOT(accept()), Qt::QueuedConnection);
- connect(buttonBox, SIGNAL(rejected()), SLOT(reject()), Qt::QueuedConnection);
+ connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept, Qt::QueuedConnection);
+ connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject, Qt::QueuedConnection);
QVBoxLayout *layout = new QVBoxLayout(this);
layout->addWidget(label);