X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftracetreeitem.hpp;h=ed0e7e8d9cad521f915803d29ceaadd8184a2a14;hp=c41b67d75d1d2ab1a2dc503048d80d7c4241b63b;hb=5d73886195c0d932e408757dfbd9ac1d2c124108;hpb=75663e3ab6656ed9fc39050d8ac6752450b6a4ad diff --git a/pv/view/tracetreeitem.hpp b/pv/view/tracetreeitem.hpp index c41b67d7..ed0e7e8d 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 = dark, true = 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_; };