mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
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:
@@ -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); });
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -27,7 +27,7 @@ class Web_socket_wrapper : public QObject
|
||||
text_changed,
|
||||
selected,
|
||||
can_send,
|
||||
can_clear,
|
||||
clear,
|
||||
ui_changed,
|
||||
end,
|
||||
begin = 0
|
||||
|
||||
Reference in New Issue
Block a user