change Event can_clear to clear

make this a bit more general, that it can be used for more then only can
This commit is contained in:
2026-02-14 14:32:18 +01:00
parent 0f1d6aa592
commit 7cb93ec14d
9 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -1059,5 +1059,5 @@ void Simulator_base::setup_can_ui(QWidget *item, size_t index)
m_web_socket->send_event(Web_socket_wrapper::Event::can_send, index, id, dlc, payload);
});
connect(can, &Can_Transceive::can_clear, this,
[=, this] { m_web_socket->send_event(Web_socket_wrapper::Event::can_clear, index); });
[=, this] { m_web_socket->send_event(Web_socket_wrapper::Event::clear, index); });
}
+1 -1
View File
@@ -77,7 +77,7 @@ void Web_socket_wrapper::send_event(Event e, size_t id)
switch (e)
{
case Event::clicked:
case Event::can_clear:
case Event::clear:
j["event"]["id"] = id;
m_web_socket->sendTextMessage(QString(j.dump().data()));
break;
+1 -1
View File
@@ -27,7 +27,7 @@ class Web_socket_wrapper : public QObject
text_changed,
selected,
can_send,
can_clear,
clear,
ui_changed,
end,
begin = 0