]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/timemarker.cpp
DecodeTrace: Allow row hiding
[pulseview.git] / pv / views / trace / timemarker.cpp
index c547d63a7ecbcea528c6372d1f70782d44ae44d5..b428f6027e7bf4331d5c9d4d408a3f56fe554a92 100644 (file)
@@ -77,11 +77,6 @@ float TimeMarker::get_x() const
        return roundf(((time_ - view_.offset()) / view_.scale()).convert_to<float>()) + 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())