X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftracetreeitem.hpp;h=8317db7b7454b040384f1b4933a3e6deb0f21b9a;hp=c41b67d75d1d2ab1a2dc503048d80d7c4241b63b;hb=37b9fed4c6b2878c814130cc11013ec918fb8ded;hpb=75663e3ab6656ed9fc39050d8ac6752450b6a4ad diff --git a/pv/view/tracetreeitem.hpp b/pv/view/tracetreeitem.hpp index c41b67d7..8317db7b 100644 --- a/pv/view/tracetreeitem.hpp +++ b/pv/view/tracetreeitem.hpp @@ -47,7 +47,7 @@ public: TraceTreeItem(); /** - * Gets the owner this item in the view item hierachy. + * Gets the owner of this item in the view item hierachy. */ TraceTreeItemOwner* owner() const; @@ -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_; };