summaryrefslogtreecommitdiffstats
path: root/examples/opcua/opcuaviewer/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opcua/opcuaviewer/mainwindow.cpp')
-rw-r--r--examples/opcua/opcuaviewer/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/opcua/opcuaviewer/mainwindow.cpp b/examples/opcua/opcuaviewer/mainwindow.cpp
index 488dda1..810577d 100644
--- a/examples/opcua/opcuaviewer/mainwindow.cpp
+++ b/examples/opcua/opcuaviewer/mainwindow.cpp
@@ -139,6 +139,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
}
connect(ui->findServersButton, &QPushButton::clicked, this, &MainWindow::findServers);
+ connect(ui->host, &QLineEdit::returnPressed, this->ui->findServersButton,
+ [this]() { this->ui->findServersButton->animateClick(); });
connect(ui->getEndpointsButton, &QPushButton::clicked, this, &MainWindow::getEndpoints);
connect(ui->connectButton, &QPushButton::clicked, this, &MainWindow::connectToServer);
oldMessageHandler = qInstallMessageHandler(&messageHandler);