Changed copyright notice.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/***************************************************************************
|
||||
|
||||
BionxControl
|
||||
Copyright © 2025 christoph holzheuer
|
||||
© 2025 -2026 christoph holzheuer
|
||||
christoph.holzheuer@gmail.com
|
||||
|
||||
Using:
|
||||
@@ -82,17 +82,26 @@ void BCValueModel::takeValueList(BCValueList& newValueList)
|
||||
*/
|
||||
|
||||
void BCValueModel::onValueUpdated( int row, BCValue::State state, const QString& newVisisbleValue )
|
||||
{
|
||||
qDebug() << " BCValueModel::onValueUpdated update: " << newVisisbleValue;
|
||||
{
|
||||
if( row > -1 && row < _valueList.size() )
|
||||
{
|
||||
BCValuePtr value = _valueList[row];
|
||||
BCValue& value = *(_valueList[row].get());
|
||||
QModelIndex idx = index(row,1);
|
||||
value->state = state;
|
||||
if( !newVisisbleValue.isEmpty() && newVisisbleValue != value->visibleValue )
|
||||
|
||||
qDebug();
|
||||
qDebug() << " --- OLD:";
|
||||
value.dumpValue();
|
||||
|
||||
value.state = state;
|
||||
|
||||
if( !newVisisbleValue.isEmpty() && newVisisbleValue != value.visibleValue )
|
||||
{
|
||||
value->visibleValue = newVisisbleValue;
|
||||
value.visibleValue = newVisisbleValue;
|
||||
}
|
||||
|
||||
qDebug() << " NEW: " << newVisisbleValue << "";
|
||||
value.dumpValue();
|
||||
|
||||
// wir schicken auf jeden fall einen update request
|
||||
emit dataChanged(idx, idx, {Qt::DisplayRole, Qt::EditRole});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user