Editing of nodes, messages, signals all works now.

Dynamically updates DBC tree if info changes.
This commit is contained in:
Collin Kidder
2020-07-22 20:57:22 -04:00
parent c89bc43795
commit 1a5010fca6
10 changed files with 105 additions and 29 deletions
+16
View File
@@ -18,6 +18,22 @@ DBCNodeEditor::DBCNodeEditor(QWidget *parent) :
dbcHandler = DBCHandler::getReference();
dbcNode = nullptr;
connect(ui->lineComment, &QLineEdit::editingFinished,
[=]()
{
if (dbcNode == nullptr) return;
dbcNode->comment = ui->lineComment->text();
emit updatedTreeInfo(dbcNode);
});
connect(ui->lineMsgName, &QLineEdit::editingFinished,
[=]()
{
if (dbcNode == nullptr) return;
dbcNode->name = ui->lineMsgName->text();
emit updatedTreeInfo(dbcNode);
});
installEventFilter(this);
}