Renamed read/writeProtoBuf to read/write
This commit is contained in:
parent
6f35ffda7f
commit
ef5686e83e
11 changed files with 30 additions and 30 deletions
|
@ -9,7 +9,7 @@ GenusModel::GenusModel(QObject *parent)
|
|||
{"Zirkus", {"Kiste", "Holz", "Vorhang", "Baum"}}};
|
||||
}
|
||||
|
||||
void GenusModel::readProtoBuf(const ESGRAF48::GenusModel &model)
|
||||
void GenusModel::read(const ESGRAF48::GenusModel &model)
|
||||
{
|
||||
const auto &tiereModel = model.tiere();
|
||||
{
|
||||
|
@ -52,7 +52,7 @@ void GenusModel::readProtoBuf(const ESGRAF48::GenusModel &model)
|
|||
emit dataChanged(index(0, 0), index(rowCount() - 1, columnCount() - 1));
|
||||
}
|
||||
|
||||
void GenusModel::writeProtoBuf(ESGRAF48::GenusModel &model) const
|
||||
void GenusModel::write(ESGRAF48::GenusModel &model) const
|
||||
{
|
||||
auto *tiereModel = model.mutable_tiere();
|
||||
if (tiereModel != nullptr)
|
||||
|
|
|
@ -10,6 +10,6 @@ class GenusModel : public CheckableTestModel
|
|||
public:
|
||||
GenusModel(QObject *parent);
|
||||
|
||||
void readProtoBuf(const ESGRAF48::GenusModel &model);
|
||||
void writeProtoBuf(ESGRAF48::GenusModel &model) const;
|
||||
void read(const ESGRAF48::GenusModel &model);
|
||||
void write(ESGRAF48::GenusModel &model) const;
|
||||
};
|
||||
|
|
|
@ -87,7 +87,7 @@ bool V2SvkModel::isValidIndex(const QModelIndex &index) const
|
|||
}
|
||||
}
|
||||
|
||||
void V2SvkModel::writeProtoBuf(ESGRAF48::V2SvkModel &model) const
|
||||
void V2SvkModel::write(ESGRAF48::V2SvkModel &model) const
|
||||
{
|
||||
auto writeOneVal = [&](ESGRAF48::V2SvkModel::OneEach *modelData, int testIndex) {
|
||||
if (modelData != nullptr)
|
||||
|
@ -147,7 +147,7 @@ void V2SvkModel::writeProtoBuf(ESGRAF48::V2SvkModel &model) const
|
|||
writeTwoVals(model.mutable_partizip(), 10);
|
||||
}
|
||||
|
||||
void V2SvkModel::readProtoBuf(const ESGRAF48::V2SvkModel &model)
|
||||
void V2SvkModel::read(const ESGRAF48::V2SvkModel &model)
|
||||
{
|
||||
auto readOneVal = [&](const ESGRAF48::V2SvkModel::OneEach &modelData, int testIndex) {
|
||||
auto &testItems = m_tests.at(testIndex).items();
|
||||
|
|
|
@ -13,8 +13,8 @@ public:
|
|||
unsigned int getV2Points();
|
||||
unsigned int getSvkPoints();
|
||||
|
||||
void writeProtoBuf(ESGRAF48::V2SvkModel &model) const;
|
||||
void readProtoBuf(const ESGRAF48::V2SvkModel &model);
|
||||
void write(ESGRAF48::V2SvkModel &model) const;
|
||||
void read(const ESGRAF48::V2SvkModel &model);
|
||||
|
||||
protected:
|
||||
bool isValidIndex(const QModelIndex &index) const override;
|
||||
|
|
|
@ -12,7 +12,7 @@ VerbEndModel::VerbEndModel(QObject *parent)
|
|||
"Temporal", "Relativ" } } };
|
||||
}
|
||||
|
||||
void VerbEndModel::writeProtoBuf(ESGRAF48::VerbEndModel &model) const
|
||||
void VerbEndModel::write(ESGRAF48::VerbEndModel &model) const
|
||||
{
|
||||
auto *telefonatModel = model.mutable_telefonat();
|
||||
if (telefonatModel != nullptr)
|
||||
|
@ -56,7 +56,7 @@ void VerbEndModel::writeProtoBuf(ESGRAF48::VerbEndModel &model) const
|
|||
}
|
||||
}
|
||||
|
||||
void VerbEndModel::readProtoBuf(const ESGRAF48::VerbEndModel &model)
|
||||
void VerbEndModel::read(const ESGRAF48::VerbEndModel &model)
|
||||
{
|
||||
const auto &telefonatModel = model.telefonat();
|
||||
{
|
||||
|
|
|
@ -10,6 +10,6 @@ class VerbEndModel : public CheckableTestModel
|
|||
public:
|
||||
VerbEndModel(QObject *parent);
|
||||
|
||||
void writeProtoBuf(ESGRAF48::VerbEndModel &model) const;
|
||||
void readProtoBuf(const ESGRAF48::VerbEndModel &model);
|
||||
void write(ESGRAF48::VerbEndModel &model) const;
|
||||
void read(const ESGRAF48::VerbEndModel &model);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue