From 147769bf60483874739d1d776434cd5779d7953a Mon Sep 17 00:00:00 2001 From: "PANIK\\chris" Date: Mon, 1 Sep 2025 23:28:24 +0200 Subject: [PATCH] added signal handler 'itemChanged' --- src/model/xqviewmodel.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/model/xqviewmodel.cpp b/src/model/xqviewmodel.cpp index 8882622..7c9e22c 100644 --- a/src/model/xqviewmodel.cpp +++ b/src/model/xqviewmodel.cpp @@ -47,6 +47,12 @@ XQViewModel::XQViewModel( QObject* parent ) { invisibleRootItem()->setData( "[rootItem]", Qt::DisplayRole ); setItemPrototype( new XQItem ); + + connect(this, &QStandardItemModel::itemChanged, this, [](QStandardItem *item) + { + qDebug() << " --- item changed: " << item->text(); + }); + } @@ -175,7 +181,7 @@ void YourClass::onItemChanged(const QModelIndex &topLeft, const QModelIndex &bot } } } - +*/ }