X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Ftracetreeitem.hpp;h=5b0bc6153aadabcdfe377b7e808707a600b9b9ab;hb=64a21e782d6c9081f13f8398e6408c13648d1d14;hp=cc329121ffcebdf842348c1903ad2b3e190b5f8e;hpb=efdec55aec1a137460fa362a381ed1904182bfed;p=pulseview.git diff --git a/pv/view/tracetreeitem.hpp b/pv/view/tracetreeitem.hpp index cc329121..5b0bc615 100644 --- a/pv/view/tracetreeitem.hpp +++ b/pv/view/tracetreeitem.hpp @@ -26,6 +26,9 @@ #include "rowitem.hpp" +using std::enable_shared_from_this; +using std::pair; + namespace pv { namespace views { namespace TraceView { @@ -33,7 +36,7 @@ namespace TraceView { class TraceTreeItemOwner; class TraceTreeItem : public RowItem, - public std::enable_shared_from_this + public enable_shared_from_this { Q_OBJECT Q_PROPERTY(int visual_v_offset @@ -110,19 +113,11 @@ 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. */ - virtual std::pair v_extents() const = 0; + virtual pair v_extents() const = 0; protected: TraceTreeItemOwner *owner_; @@ -130,8 +125,6 @@ protected: int layout_v_offset_; int visual_v_offset_; - bool bgcolour_state_; - private: QPropertyAnimation v_offset_animation_; };