diff options
author | Samuel Gaist <samuel.gaist@idiap.ch> | 2023-02-23 21:14:13 +0100 |
---|---|---|
committer | Samuel Gaist <samuel.gaist@idiap.ch> | 2023-02-25 21:46:26 +0100 |
commit | 401ac13f667ef3aa147da92677dbacdda94a4067 (patch) | |
tree | ebc63b9e6c61ea0c6a21a91cdd62bb4d94533ae0 /examples | |
parent | 989241b4149ed4233878102eb51505ad9e1707a0 (diff) | |
download | qttools-401ac13f667ef3aa147da92677dbacdda94a4067.tar.gz |
examples: port assistant examples to new connection style
Task-number: QTBUG-111464
Change-Id: If69dff20a09dc2fb5444462d6356b58b805ee3a9
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/assistant/remotecontrol/remotecontrol.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/assistant/remotecontrol/remotecontrol.cpp b/examples/assistant/remotecontrol/remotecontrol.cpp index 0456162a2..052874924 100644 --- a/examples/assistant/remotecontrol/remotecontrol.cpp +++ b/examples/assistant/remotecontrol/remotecontrol.cpp @@ -13,12 +13,12 @@ RemoteControl::RemoteControl(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, flags) { ui.setupUi(this); - connect(ui.indexLineEdit, SIGNAL(returnPressed()), - this, SLOT(on_indexButton_clicked())); - connect(ui.identifierLineEdit, SIGNAL(returnPressed()), - this, SLOT(on_identifierButton_clicked())); - connect(ui.urlLineEdit, SIGNAL(returnPressed()), - this, SLOT(on_urlButton_clicked())); + connect(ui.indexLineEdit, &QLineEdit::returnPressed, + this, &RemoteControl::on_indexButton_clicked); + connect(ui.identifierLineEdit, &QLineEdit::returnPressed, + this, &RemoteControl::on_identifierButton_clicked); + connect(ui.urlLineEdit, &QLineEdit::returnPressed, + this, &RemoteControl::on_urlButton_clicked); QString rc; QTextStream(&rc) << QLatin1String("qthelp://org.qt-project.qtdoc.") @@ -29,8 +29,8 @@ RemoteControl::RemoteControl(QWidget *parent, Qt::WindowFlags flags) ui.startUrlLineEdit->setText(rc); process = new QProcess(this); - connect(process, SIGNAL(finished(int,QProcess::ExitStatus)), - this, SLOT(helpViewerClosed())); + connect(process, &QProcess::finished, + this, &RemoteControl::helpViewerClosed); } RemoteControl::~RemoteControl() |