Driver fixes.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user