Cleanups.

This commit is contained in:
2026-01-09 06:19:37 +01:00
parent 95765226e9
commit 53b4d6e041
4 changed files with 111 additions and 100 deletions

View File

@@ -45,7 +45,18 @@ BCDeviceView::BCDeviceView(QWidget *parent)
// __fix! ziemlich wildes ge-pointere, hier
_itemDelegate = new BCAnimatedDelegate( _valueModel.getValueList(), this);
setItemDelegate( _itemDelegate );
setItemDelegateForColumn( 1, _itemDelegate );
// Signal für Änderungen
connect(&_valueModel, &BCValueModel::dataChanged, this, [](const QModelIndex& topLeft, const QModelIndex& bottomRight)
{
if (topLeft.column() ==1) {
int row = topLeft.row();
int value = topLeft.data(Qt::DisplayRole).toInt();
qDebug() << "äääZeile" << row << "wurde auf" << value << "gesetzt";
}
});
}