| 124 | return createIndex(eventRow, 0, makeTag(eventRow, QModelIndex())); |
| 125 | } |
| 126 | int rowCount(const QModelIndex &parent = QModelIndex()) const override |
| 127 | { |
| 128 | if(m_Loading) |
| 129 | return parent.isValid() ? 0 : 1; |
| 130 | |
| 131 | if(!parent.isValid()) |
| 132 | return m_History.count(); |
| 133 | |
| 134 | if(isEvent(parent)) |
| 135 | { |
| 136 | const QList<PixelModification> &mods = getMods(parent); |
| 137 | const ActionDescription *action = m_Ctx.GetAction(mods.front().eventId); |
| 138 | |
| 139 | if(action && action->flags & (ActionFlags::Clear | ActionFlags::PassBoundary)) |
| 140 | return 0; |
| 141 | |
| 142 | return mods.count(); |
| 143 | } |
| 144 | |
| 145 | return 0; |
| 146 | } |
| 147 | int columnCount(const QModelIndex &parent = QModelIndex()) const override { return 5; } |
| 148 | Qt::ItemFlags flags(const QModelIndex &index) const override |
| 149 | { |
nothing calls this directly
no test coverage detected