+void AnnotationCollectionModel::on_annotation_visibility_changed()
+{
+ if (!hide_hidden_)
+ return;
+
+ update_annotations_without_hidden();
+
+ // Re-apply the requested sample range
+ set_sample_range(start_sample_, end_sample_);
+
+ if (dataset_)
+ dataChanged(index(0, 0), index(dataset_->size(), 0));
+ else
+ dataChanged(QModelIndex(), QModelIndex());
+
+ layoutChanged();
+}
+