factory idea for wasm

cleanup
remove unused defines
This commit is contained in:
2026-04-12 13:42:02 +02:00
parent 59f7680f94
commit 8ce89a3076
16 changed files with 113 additions and 186 deletions
+7 -8
View File
@@ -7,9 +7,8 @@
#include <QMessageBox>
#include <magic_enum/magic_enum.hpp>
UI_base::UI_base(QString name, Web_socket_wrapper *web_socket, QWidget *parent)
: QMainWindow{parent}, m_timer_update(new QTimer()), m_error(new QMessageBox(this)), m_web_socket(web_socket),
m_name(name)
UI_base::UI_base(Web_socket_wrapper *web_socket, QWidget *parent)
: QMainWindow{parent}, m_timer_update(new QTimer()), m_error(new QMessageBox(this)), m_web_socket(web_socket)
{
this->setWindowState(Qt::WindowMaximized);
m_ui_lookup.reserve(40);
@@ -760,16 +759,16 @@ UI_base::UI_base(QString name, Web_socket_wrapper *web_socket, QWidget *parent)
});
}
void UI_base::set_name(QString name)
{
m_name = name;
}
QWidget *UI_base::id_to_ui(size_t id)
{
return m_ui_lookup.at(id);
}
QString UI_base::name() const
{
return m_name;
}
void UI_base::showEvent(QShowEvent *event)
{
QWidget::showEvent(event);