| 22 | } |
| 23 | |
| 24 | QVariant ModelModel::data(const QModelIndex &index, int role) const |
| 25 | { |
| 26 | if (!index.isValid()) |
| 27 | return QVariant(); |
| 28 | |
| 29 | QAbstractItemModel *model = static_cast<QAbstractItemModel *>(index.internalPointer()); |
| 30 | if (!model) |
| 31 | return QVariant(); |
| 32 | return dataForObject(model, index, role); |
| 33 | } |
| 34 | |
| 35 | int ModelModel::rowCount(const QModelIndex &parent) const |
| 36 | { |