Cleanups.
This commit is contained in:
@@ -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";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user