Skip to content

Commit

Permalink
vetter names
Browse files Browse the repository at this point in the history
  • Loading branch information
fundies committed Jan 9, 2020
1 parent 638060f commit 8072a59
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Models/ProtoModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ bool ProtoModel::setData(const QModelIndex &index, const QVariant &value, int ro

SetDirty(true);
emit dataChanged(index, index, oldValue);
RecursiveDataChanged();
ParentDataChanged();

return true;
}
Expand Down Expand Up @@ -215,7 +215,7 @@ Qt::ItemFlags ProtoModel::flags(const QModelIndex &index) const {
return flags;
}

void ProtoModel::RecursiveDataChanged() {
void ProtoModel::ParentDataChanged() {
ProtoModelPtr m = GetParentModel();
while (m != nullptr) {
emit m->dataChanged(QModelIndex(), QModelIndex());
Expand Down
2 changes: 1 addition & 1 deletion Models/ProtoModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ProtoModel : public QAbstractItemModel {
Q_OBJECT

protected:
void RecursiveDataChanged();
void ParentDataChanged();
struct SubModels {
void Clear();
QHash<int, ProtoModelPtr> protoModels;
Expand Down
4 changes: 2 additions & 2 deletions Models/RepeatedProtoModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ bool RepeatedProtoModel::setData(const QModelIndex &index, const QVariant &value
const QVariant oldValue = this->data(index, role);
if (models[index.row()]->setData(models[index.row()]->index(index.column(), 0), value, role)) {
GetParentModel()->SetDirty(true);
RecursiveDataChanged();
ParentDataChanged();
emit dataChanged(index, index, oldValue);
return true;
}
Expand Down Expand Up @@ -160,7 +160,7 @@ bool RepeatedProtoModel::insertRows(int row, int count, const QModelIndex &paren
return true;
}

void RepeatedProtoModel::RecursiveDataChanged() {
void RepeatedProtoModel::ParentDataChanged() {
ProtoModelPtr m = GetParentModel();
while (m != nullptr) {
emit m->dataChanged(QModelIndex(), QModelIndex());
Expand Down
2 changes: 1 addition & 1 deletion Models/RepeatedProtoModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class RepeatedProtoModel : public QAbstractItemModel {
void rowsAboutToBeRemoved(const QModelIndex &parent, int first, int last);

protected:
void RecursiveDataChanged();
void ParentDataChanged();
ProtoModelPtr parentModel;
Message *protobuf;
const FieldDescriptor *field;
Expand Down

0 comments on commit 8072a59

Please sign in to comment.