Renamed read/writeProtoBuf to read/write
This commit is contained in:
parent
6f35ffda7f
commit
ef5686e83e
11 changed files with 30 additions and 30 deletions
|
@ -112,7 +112,7 @@ bool MetaDataModel::setData(const QModelIndex &modelIndex, const QVariant &value
|
|||
return valueChanged;
|
||||
}
|
||||
|
||||
void MetaDataModel::readProtoBuf(const ESGRAF48::MetaDataModel &model)
|
||||
void MetaDataModel::read(const ESGRAF48::MetaDataModel &model)
|
||||
{
|
||||
setData(index(0, 0), QString::fromStdString(model.participantname()));
|
||||
setData(index(0, 1), QString::fromStdString(model.instructorname()));
|
||||
|
@ -121,7 +121,7 @@ void MetaDataModel::readProtoBuf(const ESGRAF48::MetaDataModel &model)
|
|||
setData(index(0, 4), QString::fromStdString(model.remarks()));
|
||||
}
|
||||
|
||||
void MetaDataModel::writeProtoBuf(ESGRAF48::MetaDataModel &model) const
|
||||
void MetaDataModel::write(ESGRAF48::MetaDataModel &model) const
|
||||
{
|
||||
model.set_participantname(m_participant.toStdString());
|
||||
model.set_instructorname(m_instructor.toStdString());
|
||||
|
|
|
@ -30,8 +30,8 @@ public:
|
|||
bool setData(const QModelIndex &index, const QVariant &value,
|
||||
int role = Qt::EditRole) override;
|
||||
|
||||
void readProtoBuf(const ESGRAF48::MetaDataModel &model);
|
||||
void writeProtoBuf(ESGRAF48::MetaDataModel &model) const;
|
||||
void read(const ESGRAF48::MetaDataModel &model);
|
||||
void write(ESGRAF48::MetaDataModel &model) const;
|
||||
|
||||
std::string toHtml() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue