Further renamings.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user