X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Ftriggermarker.hpp;h=40c096c0292fa32778c078f0a26bb5fbb1059789;hb=20c99cfc69d3c7430817abd9a1f810698deb4a18;hp=9137f28c1f5b96886c032709bd6d3d32caf06580;hpb=641574bcc118be0b6dc3a65039ab3497f9d7241a;p=pulseview.git diff --git a/pv/views/trace/triggermarker.hpp b/pv/views/trace/triggermarker.hpp index 9137f28c..40c096c0 100644 --- a/pv/views/trace/triggermarker.hpp +++ b/pv/views/trace/triggermarker.hpp @@ -17,11 +17,13 @@ * along with this program; if not, see . */ -#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_TRIGGER_MARKER_HPP -#define PULSEVIEW_PV_VIEWS_TRACEVIEW_TRIGGER_MARKER_HPP +#ifndef PULSEVIEW_PV_VIEWS_TRACE_TRIGGERMARKER_HPP +#define PULSEVIEW_PV_VIEWS_TRACE_TRIGGERMARKER_HPP #include "timeitem.hpp" +#include + namespace pv { namespace views { namespace trace { @@ -58,13 +60,15 @@ public: /** Returns true if the item may be dragged/moved. */ - bool is_draggable() const override; + bool is_draggable(QPoint pos) const override; /** * Sets the time of the marker. */ void set_time(const pv::util::Timestamp& time) override; + virtual const pv::util::Timestamp time() const override; + float get_x() const override; /** @@ -88,4 +92,4 @@ private: } // namespace views } // namespace pv -#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_TRIGGER_MARKER_HPP +#endif // PULSEVIEW_PV_VIEWS_TRACE_TRIGGERMARKER_HPP