X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftimemarker.cpp;h=5db9e9fe77ae3c0fa4ec2e4e069c9364e704ffbb;hp=9f5bd5e8c75effd218781125a82f0ed8b9b70fd9;hb=8debe10dd47a5f519cd6e9069231f8e77c9c04e1;hpb=cd6c8ee24fe845fc7d4fcbf8672bb8cdd3afea1a diff --git a/pv/view/timemarker.cpp b/pv/view/timemarker.cpp index 9f5bd5e8..5db9e9fe 100644 --- a/pv/view/timemarker.cpp +++ b/pv/view/timemarker.cpp @@ -24,11 +24,12 @@ #include +using namespace std; + namespace pv { namespace view { -TimeMarker::TimeMarker(const View &view, const QColor &colour, - double time) : +TimeMarker::TimeMarker(View &view, const QColor &colour, double time) : _view(view), _colour(colour), _time(time) @@ -43,6 +44,7 @@ double TimeMarker::time() const void TimeMarker::set_time(double time) { _time = time; + time_changed(); } void TimeMarker::paint(QPainter &p, const QRect &rect) @@ -52,5 +54,11 @@ void TimeMarker::paint(QPainter &p, const QRect &rect) p.drawLine(QPointF(x, rect.top()), QPointF(x, rect.bottom())); } +const list TimeMarker::get_context_bar_actions() +{ + list actions; + return actions; +} + } // namespace view } // namespace pv