| 82 | } |
| 83 | |
| 84 | bool JsonDisplayModel::setHeaderData(int section, Qt::Orientation orientation, |
| 85 | const QVariant &value, int role) |
| 86 | { |
| 87 | if (d->cacheFeild.empty()) { |
| 88 | return QStandardItemModel::setHeaderData(section, orientation, value, role); |
| 89 | } else { |
| 90 | return true; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | QModelIndex JsonDisplayModel::index(int row, int column, const QModelIndex &parent) const |
| 95 | { |