X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fannotation.cpp;fp=pv%2Fdata%2Fdecode%2Fannotation.cpp;h=1a331b3e143aeb46e0969b5936dac60e7fa314aa;hp=27a44fe4808208b09240d575910ff4f72b68cc42;hb=86d4b8e3e52a422fe3a6956d6bbef27f1859717b;hpb=2a89c44befb218b3eb72c3874a55a06d73d445d3 diff --git a/pv/data/decode/annotation.cpp b/pv/data/decode/annotation.cpp index 27a44fe4..1a331b3e 100644 --- a/pv/data/decode/annotation.cpp +++ b/pv/data/decode/annotation.cpp @@ -122,6 +122,13 @@ const QString Annotation::longest_annotation() const return texts_->front(); } +bool Annotation::visible() const +{ + const Row* row = data_->row(); + + return (row->visible() && row->class_is_visible(ann_class_id_)); +} + const QColor Annotation::color() const { return data_->row()->get_class_color(ann_class_id_);