From 8072a596e9bc33d21d4ad9255256afdb162d8007 Mon Sep 17 00:00:00 2001 From: Greg Williamson Date: Thu, 9 Jan 2020 22:48:32 +0000 Subject: [PATCH] vetter names --- Models/ProtoModel.cpp | 4 ++-- Models/ProtoModel.h | 2 +- Models/RepeatedProtoModel.cpp | 4 ++-- Models/RepeatedProtoModel.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Models/ProtoModel.cpp b/Models/ProtoModel.cpp index 7ad36529c..5e419b140 100644 --- a/Models/ProtoModel.cpp +++ b/Models/ProtoModel.cpp @@ -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; } @@ -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()); diff --git a/Models/ProtoModel.h b/Models/ProtoModel.h index ca8e45195..bc2926050 100644 --- a/Models/ProtoModel.h +++ b/Models/ProtoModel.h @@ -24,7 +24,7 @@ class ProtoModel : public QAbstractItemModel { Q_OBJECT protected: - void RecursiveDataChanged(); + void ParentDataChanged(); struct SubModels { void Clear(); QHash protoModels; diff --git a/Models/RepeatedProtoModel.cpp b/Models/RepeatedProtoModel.cpp index b5ba464c4..4ec5ebe77 100644 --- a/Models/RepeatedProtoModel.cpp +++ b/Models/RepeatedProtoModel.cpp @@ -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; } @@ -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()); diff --git a/Models/RepeatedProtoModel.h b/Models/RepeatedProtoModel.h index d2970e8e5..62d5c8a71 100644 --- a/Models/RepeatedProtoModel.h +++ b/Models/RepeatedProtoModel.h @@ -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;