Add position field to device settings

This commit is contained in:
2023-02-15 20:17:58 +01:00
parent 579eba2b1b
commit e30c5293ed
6 changed files with 66 additions and 6 deletions

View File

@ -229,7 +229,7 @@ bool DevicesModel::setData(const QModelIndex &index, const QVariant &value, int
return false;
}
light.position = value.value<QVector3D>();
emit dataChanged(index, index, { AddressRole });
emit dataChanged(index, index, { PositionRole });
return true;
}