change from sim_name to name
This commit is contained in:
2026-02-14 14:31:26 +01:00
parent 34acefde6a
commit 1032e9ed28
3 changed files with 10 additions and 10 deletions
+6 -6
View File
@@ -7,13 +7,13 @@
#include "web_socket_wrapper.hpp"
#include <magic_enum/magic_enum.hpp>
Simulator_base::Simulator_base(QString sim_name, Web_socket_wrapper *web_socket, QWidget *parent)
Simulator_base::Simulator_base(QString name, Web_socket_wrapper *web_socket, QWidget *parent)
: QMainWindow{parent}, m_error_dialog(new NetworkError(this)), m_timer_update(new QTimer()),
m_web_socket(web_socket), m_sim_name(sim_name)
m_web_socket(web_socket), m_name(name)
{
if (windowTitle() != m_sim_name)
if (windowTitle() != m_name)
{
setWindowTitle(m_sim_name);
setWindowTitle(m_name);
}
m_error_dialog->set_error("Connection timed out\nCheck if the server is running");
m_ui_lookup.reserve(40);
@@ -24,9 +24,9 @@ QWidget *Simulator_base::id_to_ui(size_t id)
return m_ui_lookup.at(id);
}
QString Simulator_base::sim_name() const
QString Simulator_base::name() const
{
return m_sim_name;
return m_name;
}
void Simulator_base::showEvent(QShowEvent *event)