Driver fixes.

This commit is contained in:
2026-01-09 10:47:29 +01:00
parent c81c38f780
commit 2547ed6e1c
13 changed files with 101 additions and 146 deletions

View File

@@ -92,11 +92,10 @@ void BCValueModel::updateValue(int row, BCValue::Flags newState, uint32_t rawVal
//value.valueFlags = state;
value.rawValue = rawValue;
QModelIndex idx1 = index(row,1);
QModelIndex idx2 = index(row,2);
QModelIndex idx = index(row,1);
// wir schicken auf jeden fall einen update request
emit dataChanged(idx1, idx2, {Qt::DisplayRole, Qt::EditRole});
emit dataChanged(idx, idx, {Qt::DisplayRole, Qt::EditRole});
}
}
@@ -182,7 +181,6 @@ Qt::ItemFlags BCValueModel::flags(const QModelIndex& index) const
bool BCValueModel::setData(const QModelIndex& index, const QVariant& variant, int role)
{
qDebug() << " --- SET DATA: " << variant.toString();
if (index.isValid() && role == Qt::EditRole)
{