#include "rowitem.hpp"
+using std::enable_shared_from_this;
+using std::pair;
+
namespace pv {
namespace views {
namespace TraceView {
class TraceTreeItemOwner;
class TraceTreeItem : public RowItem,
- public std::enable_shared_from_this<TraceTreeItem>
+ public enable_shared_from_this<TraceTreeItem>
{
Q_OBJECT
Q_PROPERTY(int visual_v_offset
*/
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<int, int> v_extents() const = 0;
+ virtual pair<int, int> v_extents() const = 0;
protected:
TraceTreeItemOwner *owner_;
int layout_v_offset_;
int visual_v_offset_;
- bool bgcolour_state_;
-
private:
QPropertyAnimation v_offset_animation_;
};