fix spelling mistake

This commit is contained in:
2024-12-30 12:08:13 +01:00
parent 88eeb7e6ca
commit b8aa9449ac
27 changed files with 83 additions and 79 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#include "simulator_base.hpp"
Simulator_base::Simulator_base(std::string name, std::chrono::milliseconds interval, QObject *parrent)
: QObject(parrent), m_name(name), m_timer(new QTimer(this)), m_interval(interval)
Simulator_base::Simulator_base(std::string name, std::chrono::milliseconds interval, QObject *parent)
: QObject(parent), m_name(name), m_timer(new QTimer(this)), m_interval(interval)
{
connect(m_timer, &QTimer::timeout, this, [this] { timer(); });
m_UI_items.reserve(50);
+1 -1
View File
@@ -15,7 +15,7 @@ class Simulator_base : public QObject
* @param interval The interval of the timer (default is 100ms)
*/
Simulator_base(std::string name, std::chrono::milliseconds interval = std::chrono::milliseconds(100),
QObject *parrent = nullptr);
QObject *parent = nullptr);
/**
* @brief Returns the name of the simulator
+1 -1
View File
@@ -4,7 +4,7 @@
#include <QDebug>
#include <unordered_set>
Simulators::Simulators(uint16_t port, QObject *parrent) : QObject(parrent), m_server(new Websocket(port, this))
Simulators::Simulators(uint16_t port, QObject *parent) : QObject(parent), m_server(new Websocket(port, this))
{
INSERT_SIMULATOR(Test_Sim);
INSERT_SIMULATOR(Can_Debugger);
+2 -2
View File
@@ -1,7 +1,7 @@
#include "test_sim.hpp"
Test_Sim::Test_Sim(QObject* parrent) :
Simulator_base("Test_Sim", std::chrono::milliseconds(1000), parrent),
Test_Sim::Test_Sim(QObject* parent) :
Simulator_base("Test_Sim", std::chrono::milliseconds(1000), parent),
m_button("Off", Color(Color::White), Color(Color::Red)),
m_combobox(Color(Color::White), Color(Color::Black), {"Option 1", "Option 2", "Option 3"}, 0),
m_label("Label", Color(Color::White), Color(Color::Black)),
+1 -1
View File
@@ -4,7 +4,7 @@
class Test_Sim : public Simulator_base {
Q_OBJECT
public:
Test_Sim(QObject* parrent = nullptr);
Test_Sim(QObject* parent = nullptr);
void timer() override;
void run_at_startup() override;
private: