Skip to content

Commit

Permalink
less broke but still broke
Browse files Browse the repository at this point in the history
  • Loading branch information
fundies committed Jan 17, 2020
1 parent 87afcd7 commit 1140fd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Models/RepeatedMessageModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ bool RepeatedMessageModel::insertRows(int row, int count, const QModelIndex &par

Message *parentBuffer = GetParentModel<MessageModel *>()->GetBuffer();
for (int r = 0; r < count; ++r) {
//Message *m = parentBuffer->GetReflection()->AddMessage(parentBuffer, _field);
//_subModels.append(new MessageModel(m, _parentModel));
Message *m = parentBuffer->GetReflection()->AddMessage(parentBuffer, _field);
_subModels.append(new MessageModel(_parentModel, m));
}

SwapBack(row, p, rowCount());
Expand Down
3 changes: 1 addition & 2 deletions Models/RepeatedStringModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
#include <algorithm>

QVariant RepeatedStringModel::Data(int row, int column) const {
qDebug() << "RepeatedStringModel::Data";
return data(index(row, column, QModelIndex()), Qt::DisplayRole);
return data(index(row, column, QModelIndex()), Qt::UserRole);
}

bool RepeatedStringModel::SetData(const QVariant& value, int row, int column) {
Expand Down

0 comments on commit 1140fd0

Please sign in to comment.