| 287 | } |
| 288 | |
| 289 | QVariant QJsonModel::headerData(int section, Qt::Orientation orientation, int role) const { |
| 290 | if (role == Qt::DisplayRole && orientation == Qt::Horizontal) |
| 291 | return mHeaders.value(section); |
| 292 | |
| 293 | return {}; |
| 294 | } |
| 295 | |
| 296 | QModelIndex QJsonModel::index(int row, int column, const QModelIndex& parent) const { |
| 297 | if (!hasIndex(row, column, parent)) |