summaryrefslogtreecommitdiff
path: root/examples/serialport/master
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2015-07-03 13:05:18 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2015-09-02 10:32:58 +0000
commit14d8b2a3994adf8f2f94b065288980d5e61e0ba0 (patch)
tree2fcada303f662cb14a33f2ca84ca58d5ab720062 /examples/serialport/master
parent2610d81ead1fc755606e2bcd1418235bc0051d80 (diff)
downloadqtserialport-14d8b2a3994adf8f2f94b065288980d5e61e0ba0.tar.gz
Use the new signal/slot syntax everywherev5.6.0-alpha1
Change-Id: Ia9868d010106abbfeb8f8d24e84adf37de879991 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples/serialport/master')
-rw-r--r--examples/serialport/master/dialog.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/serialport/master/dialog.cpp b/examples/serialport/master/dialog.cpp
index c292b66..847635a 100644
--- a/examples/serialport/master/dialog.cpp
+++ b/examples/serialport/master/dialog.cpp
@@ -80,12 +80,9 @@ Dialog::Dialog(QWidget *parent)
timer.setSingleShot(true);
- connect(runButton, SIGNAL(clicked()),
- this, SLOT(sendRequest()));
- connect(&serial, SIGNAL(readyRead()),
- this, SLOT(readResponse()));
- connect(&timer, SIGNAL(timeout()),
- this, SLOT(processTimeout()));
+ connect(runButton, &QPushButton::clicked, this, &Dialog::sendRequest);
+ connect(&serial, &QSerialPort::readyRead, this, &Dialog::readResponse);
+ connect(&timer, &QTimer::timeout, this, &Dialog::processTimeout);
}
void Dialog::sendRequest()