fix window naming
This commit is contained in:
2026-02-14 14:30:57 +01:00
parent 92b88ca522
commit 371a465cf2
6 changed files with 5 additions and 9 deletions
-1
View File
@@ -11,7 +11,6 @@ MainWindow::MainWindow(QUrl ws_url, QWidget *parent)
m_error_dialog(new NetworkError(this)) m_error_dialog(new NetworkError(this))
{ {
ui->setupUi(this); ui->setupUi(this);
this->setWindowTitle("Simulator Selector");
INSERT_SIMULATOR(Cable_Tester); INSERT_SIMULATOR(Cable_Tester);
INSERT_SIMULATOR(Can_Debugger); INSERT_SIMULATOR(Can_Debugger);
INSERT_SIMULATOR(Scope_Mux_Tester); INSERT_SIMULATOR(Scope_Mux_Tester);
+1 -1
View File
@@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>MainWindow</string> <string>Simulator Selector</string>
</property> </property>
<widget class="QWidget" name="centralwidget"> <widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
-2
View File
@@ -6,8 +6,6 @@ NetworkError::NetworkError(QWidget *parent) : QDialog(parent), ui(new Ui::Networ
ui->setupUi(this); ui->setupUi(this);
connect(ui->exit, &QPushButton::clicked, this, &QCoreApplication::quit, Qt::QueuedConnection); connect(ui->exit, &QPushButton::clicked, this, &QCoreApplication::quit, Qt::QueuedConnection);
connect(ui->close, &QPushButton::clicked, this, [=, this] { this->close(); }); connect(ui->close, &QPushButton::clicked, this, [=, this] { this->close(); });
this->setWindowTitle("Error");
} }
void NetworkError::set_error(QString error) void NetworkError::set_error(QString error)
+3 -3
View File
@@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Dialog</string> <string>Error</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0"> <item row="0" column="0">
@@ -28,7 +28,7 @@
<string>Oops, an error occured</string> <string>Oops, an error occured</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignmentFlag::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
@@ -38,7 +38,7 @@
<string>Error...</string> <string>Error...</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignmentFlag::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
-1
View File
@@ -5,7 +5,6 @@ Can_Debugger::Can_Debugger(Web_socket_wrapper *web_socket, QWidget *parent)
: Simulator_base("Can Debugger", web_socket, parent), ui(new Ui::Can_Debugger) : Simulator_base("Can Debugger", web_socket, parent), ui(new Ui::Can_Debugger)
{ {
ui->setupUi(this); ui->setupUi(this);
this->setWindowTitle("CAN Debugger");
this->push_ui_item(ui->can_transceive); this->push_ui_item(ui->can_transceive);
} }
+1 -1
View File
@@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>MainWindow</string> <string>CAN Debugger</string>
</property> </property>
<widget class="QWidget" name="centralwidget"> <widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout_8"> <layout class="QGridLayout" name="gridLayout_8">