summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tools/echoplugin/echowindow
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2018-04-18 14:06:26 +0200
committerNico Vertriest <nico.vertriest@qt.io>2018-05-16 11:59:27 +0000
commit57fae860fddcf798c27be033ffeab50f76c842c7 (patch)
tree1ba769d33036ffda09983d6a645f200b0aa7f217 /examples/widgets/tools/echoplugin/echowindow
parent3b28e3d871e5952873ea59f8a68c48c3ded2c9ed (diff)
Doc: Modify connect statements Echoplugin Example
Task-number: QTBUG-60635 Change-Id: I4313ff65875d20b768d7ad6e9c8322bd5cf7f1ab Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'examples/widgets/tools/echoplugin/echowindow')
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/echowindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/widgets/tools/echoplugin/echowindow/echowindow.cpp b/examples/widgets/tools/echoplugin/echowindow/echowindow.cpp
index 1efc7b9355..64b59d506e 100644
--- a/examples/widgets/tools/echoplugin/echowindow/echowindow.cpp
+++ b/examples/widgets/tools/echoplugin/echowindow/echowindow.cpp
@@ -83,10 +83,10 @@ void EchoWindow::createGUI()
label->setFrameStyle(QFrame::Box | QFrame::Plain);
button = new QPushButton(tr("Send Message"));
- connect(lineEdit, SIGNAL(editingFinished()),
- this, SLOT(sendEcho()));
- connect(button, SIGNAL(clicked()),
- this, SLOT(sendEcho()));
+ connect(lineEdit, &QLineEdit::editingFinished,
+ this, &EchoWindow::sendEcho);
+ connect(button, &QPushButton::clicked,
+ this, &EchoWindow::sendEcho);
layout = new QGridLayout;
layout->addWidget(new QLabel(tr("Message:")), 0, 0);