- // We consider all annotations as visible that either
- // a) begin to the left of the range and end within the range or
- // b) begin and end within the range or
- // c) begin within the range and end to the right of the range
- // ...which is equivalent to the negation of "begins and ends outside the range"
+ const QModelIndex ann_end_sample_idx = sourceModel()->index(sourceRow, 6);
+ const uint64_t ann_end_sample =
+ sourceModel()->data(ann_end_sample_idx, Qt::DisplayRole).toULongLong();