X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Ftimemarker.cpp;h=b428f6027e7bf4331d5c9d4d408a3f56fe554a92;hb=0bb3dd25421a8638afb881d46799a13378d3f00b;hp=c547d63a7ecbcea528c6372d1f70782d44ae44d5;hpb=710c2a1896fbac968c82f2d1257aaabd10a48cc8;p=pulseview.git diff --git a/pv/views/trace/timemarker.cpp b/pv/views/trace/timemarker.cpp index c547d63a..b428f602 100644 --- a/pv/views/trace/timemarker.cpp +++ b/pv/views/trace/timemarker.cpp @@ -77,11 +77,6 @@ float TimeMarker::get_x() const return roundf(((time_ - view_.offset()) / view_.scale()).convert_to()) + 0.5f; } -const pv::util::Timestamp TimeMarker::delta(const pv::util::Timestamp& other) const -{ - return other - time_; -} - QPoint TimeMarker::drag_point(const QRect &rect) const { (void)rect; @@ -110,6 +105,11 @@ QRectF TimeMarker::hit_box_rect(const ViewItemPaintParams &pp) const return QRectF(x - h / 2.0f, pp.top(), h, pp.height()); } +void TimeMarker::set_text(const QString &text) +{ + (void)text; +} + void TimeMarker::paint_label(QPainter &p, const QRect &rect, bool hover) { if (!enabled())