X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Ftimemarker.hpp;h=cd7c84d279747cddf13fb0a6fd58c11af5292b3f;hb=440bdf504a05efe589e8954ad28be62ba2c2d325;hp=28bcd73aba40c327662a6e47beaf43aea2006bdc;hpb=ee7fd68c0851423c9a5c6ce244ba3fb4e28bbfc3;p=pulseview.git diff --git a/pv/views/trace/timemarker.hpp b/pv/views/trace/timemarker.hpp index 28bcd73a..cd7c84d2 100644 --- a/pv/views/trace/timemarker.hpp +++ b/pv/views/trace/timemarker.hpp @@ -65,7 +65,7 @@ public: /** * Gets the time of the marker. */ - const pv::util::Timestamp& time() const; + virtual const pv::util::Timestamp time() const override; /** * Sets the time of the marker. @@ -99,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.