]> sigrok.org Git - pulseview.git/blobdiff - pv/view/tracetreeitem.hpp
Use alternating trace background colors when not using their own
[pulseview.git] / pv / view / tracetreeitem.hpp
index c41b67d75d1d2ab1a2dc503048d80d7c4241b63b..3632ded2f3fb51553ec402a3126f25165561fdf5 100644 (file)
@@ -110,6 +110,14 @@ public:
         */
        QPoint point(const QRect &rect) const;
 
+       /**
+     * Sets the new background colour state: false means dark, true means bright.
+        * This is to allow for alternating backgrounds but has no effect
+        * when coloured background colours are used.
+        * @param state New bg color state to use.
+        */
+       void set_bgcolour_state(bool state);
+
        /**
         * Computes the vertical extents of the contents of this row item.
         * @return A pair containing the minimum and maximum y-values.
@@ -122,6 +130,8 @@ protected:
        int layout_v_offset_;
        int visual_v_offset_;
 
+       bool bgcolour_state_;
+
 private:
        QPropertyAnimation v_offset_animation_;
 };