X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Ftracetreeitem.hpp;h=3632ded2f3fb51553ec402a3126f25165561fdf5;hb=ac0708fb7e6b4010d90a569386810d3d2edc7eb9;hp=c41b67d75d1d2ab1a2dc503048d80d7c4241b63b;hpb=574c568d184240cd87be1b57fc00d60a4eac7566;p=pulseview.git diff --git a/pv/view/tracetreeitem.hpp b/pv/view/tracetreeitem.hpp index c41b67d7..3632ded2 100644 --- a/pv/view/tracetreeitem.hpp +++ b/pv/view/tracetreeitem.hpp @@ -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_; };