X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Ftimemarker.hpp;h=cd7c84d279747cddf13fb0a6fd58c11af5292b3f;hb=440bdf504a05efe589e8954ad28be62ba2c2d325;hp=327a498ffe964295d876eb6ea40d38ddb50557f4;hpb=710c2a1896fbac968c82f2d1257aaabd10a48cc8;p=pulseview.git diff --git a/pv/views/trace/timemarker.hpp b/pv/views/trace/timemarker.hpp index 327a498f..cd7c84d2 100644 --- a/pv/views/trace/timemarker.hpp +++ b/pv/views/trace/timemarker.hpp @@ -74,8 +74,6 @@ public: float get_x() const override; - virtual const pv::util::Timestamp delta(const pv::util::Timestamp& other) const override; - /** * Gets the arrow-tip point of the time marker. * @param rect the rectangle of the ruler area. @@ -101,6 +99,11 @@ public: */ virtual QString get_text() const = 0; + /** + * Sets the text to show in the marker. + */ + virtual void set_text(const QString &text); + /** * Paints the marker's label to the ruler. * @param p The painter to draw with.