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>
This commit is contained in:
parent
3b28e3d871
commit
57fae860fd
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user