added signal handler 'itemChanged'
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user