const QModelIndex& parent_idx) const
{
(void)parent_idx;
- assert(row >= 0);
assert(column >= 0);
- if (!dataset_)
+ if (!dataset_ || (row < 0))
return QModelIndex();
QModelIndex idx;
} else {
// Force the view associated with this model to update when we have more annotations
if (prev_last_row_ < new_row_count) {
- dataChanged(index(prev_last_row_, 0, QModelIndex()),
- index(new_row_count, 0, QModelIndex()));
+ dataChanged(index(prev_last_row_, 0), index(new_row_count, 0));
layoutChanged();
}
}
all_annotations_without_hidden_.resize(count);
- dataChanged(index(0, 0, QModelIndex()), index(count, 0, QModelIndex()));
+ dataChanged(index(0, 0), index(count, 0));
layoutChanged();
}