Table widget : led and type is editable

But not applied yet to the terminal strip
This commit is contained in:
joshua
2021-07-13 12:27:08 +02:00
parent efed7ab5c0
commit 30dc34ebe1
3 changed files with 213 additions and 24 deletions

View File

@@ -42,6 +42,7 @@ TerminalStripEditor::TerminalStripEditor(QETProject *project, QWidget *parent) :
m_project(project)
{
ui->setupUi(this);
ui->m_table_widget->setItemDelegate(new TerminalStripModelDelegate(ui->m_terminal_strip_tw));
ui->m_remove_terminal_strip_pb->setDisabled(true);
buildTree();
ui->m_terminal_strip_tw->expandRecursively(ui->m_terminal_strip_tw->rootIndex());
@@ -391,7 +392,7 @@ void TerminalStripEditor::on_m_dialog_button_box_clicked(QAbstractButton *button
auto role = ui->m_dialog_button_box->buttonRole(button);
if (role == QDialogButtonBox::AcceptRole) {
if (role == QDialogButtonBox::ApplyRole) {
if (m_current_strip)
{
TerminalStripData data;