X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Ftracetreeitem.hpp;h=51e2ba42914741178f245d6b0c4a947b9c3e0b4a;hb=88a2597864920ecdbe66cf0cd4b8172bdabb2263;hp=7a4bf4622de5bf11cdd45744acceb198d88eca05;hpb=1573bf16ba50d1c023ad3a9ce596f0ab6eaeacff;p=pulseview.git diff --git a/pv/views/trace/tracetreeitem.hpp b/pv/views/trace/tracetreeitem.hpp index 7a4bf462..51e2ba42 100644 --- a/pv/views/trace/tracetreeitem.hpp +++ b/pv/views/trace/tracetreeitem.hpp @@ -24,7 +24,7 @@ #include -#include "rowitem.hpp" +#include "viewitem.hpp" using std::enable_shared_from_this; using std::pair; @@ -35,7 +35,7 @@ namespace trace { class TraceTreeItemOwner; -class TraceTreeItem : public RowItem, +class TraceTreeItem : public ViewItem, public enable_shared_from_this { Q_OBJECT @@ -94,7 +94,7 @@ public: * Sets the owner this trace in the view trace hierachy. * @param The new owner of the trace. */ - void set_owner(TraceTreeItemOwner *owner); + virtual void set_owner(TraceTreeItemOwner *owner); /** * Gets the visual y-offset of the axis. @@ -111,7 +111,7 @@ public: * Gets the arrow-tip point of the row item marker. * @param rect the rectangle of the header area. */ - QPoint point(const QRect &rect) const; + QPoint drag_point(const QRect &rect) const; /** * Computes the vertical extents of the contents of this row item.