]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/row.cpp
rowdata.hpp: Minor indentation fixes.
[pulseview.git] / pv / data / decode / row.cpp
index 70c430ac9d7395722192fe3b5a29e16a4036174d..d127a2eadaf3045180452a148777f33cb30c9f08 100644 (file)
@@ -110,6 +110,8 @@ bool Row::visible() const
 void Row::set_visible(bool visible)
 {
        visible_ = visible;
+
+       visibility_changed();
 }
 
 void Row::set_base_color(QColor base_color)
@@ -163,12 +165,17 @@ const QColor Row::get_dark_class_color(uint32_t ann_class_id) const
 bool Row::has_hidden_classes() const
 {
        for (const AnnotationClass* c : ann_classes())
-               if (!c->visible)
+               if (!c->visible())
                        return true;
 
        return false;
 }
 
+bool Row::class_is_visible(uint32_t ann_class_id) const
+{
+       return decoder_->get_ann_class_by_id(ann_class_id)->visible();
+}
+
 bool Row::operator<(const Row& other) const
 {
        return (decoder_ < other.decoder_) ||