| 252 | |
| 253 | |
| 254 | QModelIndex ThreadFrameModel::parent(const QModelIndex& index) const |
| 255 | { |
| 256 | if (!index.isValid()) |
| 257 | return QModelIndex(); |
| 258 | |
| 259 | FrameItem* childItem = static_cast<FrameItem*>(index.internalPointer()); |
| 260 | FrameItem* parentItem = childItem->parentItem(); |
| 261 | |
| 262 | if (parentItem == rootItem) |
| 263 | return QModelIndex(); |
| 264 | |
| 265 | return createIndex(parentItem->row(), 0, parentItem); |
| 266 | } |
| 267 | |
| 268 | |
| 269 | int ThreadFrameModel::rowCount(const QModelIndex& parent) const |
nothing calls this directly
no test coverage detected