Further renamings.

This commit is contained in:
2025-12-23 11:09:26 +01:00
parent 03381ea705
commit 01912c75ef
14 changed files with 62 additions and 62 deletions

View File

@@ -35,7 +35,7 @@
BCDataModel::BCDataModel(QObject *parent) : QAbstractListModel(parent) {}
void BCDataModel::addValue(const BCData &val)
void BCDataModel::addValue(const BCDataItem& val)
{
int row = _valueList.size();
beginInsertRows(QModelIndex(), row, row);
@@ -55,7 +55,7 @@ BCDataList& BCDataModel::getValueList()
return _valueList;
}
int BCDataModel::rowCount(const QModelIndex &parent) const
int BCDataModel::rowCount(const QModelIndex& parent) const
{
if (parent.isValid())
return 0;
@@ -68,7 +68,7 @@ QVariant BCDataModel::data(const QModelIndex& index, int role) const
if (!index.isValid() || row >= _valueList.size())
return QVariant();
BCData& entry = const_cast<BCData&>(_valueList.at( row ));
BCDataItem& entry = const_cast<BCDataItem&>(_valueList.at( row ));
entry.rowInModel = row;
if (role == Qt::DisplayRole || role == Qt::EditRole)
@@ -78,7 +78,7 @@ QVariant BCDataModel::data(const QModelIndex& index, int role) const
}
Qt::ItemFlags BCDataModel::flags(const QModelIndex &index) const
Qt::ItemFlags BCDataModel::flags(const QModelIndex& index) const
{
if (!index.isValid())
return Qt::NoItemFlags;
@@ -87,11 +87,11 @@ Qt::ItemFlags BCDataModel::flags(const QModelIndex &index) const
}
bool BCDataModel::setData(const QModelIndex &index, const QVariant &value, int role)
bool BCDataModel::setData(const QModelIndex& index, const QVariant& value, int role)
{
if (index.isValid() && role == Qt::EditRole)
{
BCData item = _valueList[index.row()];
BCDataItem item = _valueList[index.row()];
// Wir erwarten hier nur den Value-Teil (vom Slider/Editor)
// Checken ob Int oder Double