summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/opcua/opcuaviewer/mainwindow.cpp2
-rw-r--r--examples/opcua/opcuaviewer/mainwindow.ui3
2 files changed, 5 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);
diff --git a/examples/opcua/opcuaviewer/mainwindow.ui b/examples/opcua/opcuaviewer/mainwindow.ui
index 6fe0420..429a4e4 100644
--- a/examples/opcua/opcuaviewer/mainwindow.ui
+++ b/examples/opcua/opcuaviewer/mainwindow.ui
@@ -71,6 +71,9 @@
<property name="text">
<string>opc.tcp://localhost:48010</string>
</property>
+ <property name="clearButtonEnabled">
+ <bool>true</bool>
+ </property>
</widget>
</item>
<item row="0" column="1">