From 6842b857eb92a0abd6e85d1eee7a3b86919f8474 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Sun, 15 Sep 2024 13:56:47 +0200 Subject: [PATCH] mainwindow add connected to label --- Qt/mainwindow.cpp | 1 + Qt/mainwindow.ui | 41 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/Qt/mainwindow.cpp b/Qt/mainwindow.cpp index d36c219..8aa5af9 100644 --- a/Qt/mainwindow.cpp +++ b/Qt/mainwindow.cpp @@ -20,6 +20,7 @@ MainWindow::MainWindow(QString host, uint16_t port, QWidget *parent) : this->setWindowTitle("Simulator Selector"); m_error_dialog->set_error("Connection timed out\nCheck if the server is running"); + ui->connection->setText("Connected to ws://" + host + ":" + QString::number(port)); //Default sim //defaultSim("CVS_I10"); diff --git a/Qt/mainwindow.ui b/Qt/mainwindow.ui index c2a5724..a3e05d7 100644 --- a/Qt/mainwindow.ui +++ b/Qt/mainwindow.ui @@ -15,7 +15,7 @@ - + @@ -29,6 +29,45 @@ + + + + + 0 + 0 + + + + TextLabel + + + + + + + Qt::Orientation::Vertical + + + + 20 + 40 + + + + + + + + Qt::Orientation::Vertical + + + + 20 + 40 + + + +