Client doxygen

Add documentation to the client
This commit is contained in:
2026-02-14 14:32:36 +01:00
parent 758958fd3a
commit 7a74847f45
5 changed files with 448 additions and 30 deletions
+2 -7
View File
@@ -56,8 +56,9 @@ MainWindow::~MainWindow()
delete ui;
}
void MainWindow::setup_cb(void)
void MainWindow::showEvent(QShowEvent *event)
{
QWidget::showEvent(event);
connect(m_web_socket.get(), &Web_socket_wrapper::on_command_cb, this, [=, this](json &j) { on_cmd_cb(j); });
connect(m_web_socket.get(), &Web_socket_wrapper::on_connected, this,
[=, this] { m_web_socket->send_command(Web_socket_wrapper::Command::get_simulators); });
@@ -67,12 +68,6 @@ void MainWindow::setup_cb(void)
});
}
void MainWindow::showEvent(QShowEvent *event)
{
QWidget::showEvent(event);
setup_cb();
}
void MainWindow::hideEvent(QHideEvent *event)
{
QWidget::hideEvent(event);