| 175 | } |
| 176 | |
| 177 | ThreadFetchModel::ThreadFetchModel(QObject *parent) |
| 178 | : QAbstractListModel(parent) |
| 179 | { |
| 180 | const auto threadModel = dynamic_cast<ThreadModel *>(parent); |
| 181 | Q_ASSERT(threadModel != nullptr); |
| 182 | connect(threadModel, &ThreadModel::moreEventsAvailableChanged, this, [this]() { |
| 183 | beginResetModel(); |
| 184 | endResetModel(); |
| 185 | }); |
| 186 | } |
| 187 | |
| 188 | QVariant ThreadFetchModel::data(const QModelIndex &idx, int role) const |
| 189 | { |
nothing calls this directly
no outgoing calls
no test coverage detected