X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Ftimemarker.hpp;h=040a29ea78605fadcd5c2723ac37019b9691cca9;hp=99c56d34beedad769a7b4e988b456178210fa412;hb=8845be3c9c7d5aca02fb2efc4038f4735a5242d6;hpb=9f094349d415a37ec30fa2aa2bb6c979c03d6bc1 diff --git a/pv/views/trace/timemarker.hpp b/pv/views/trace/timemarker.hpp index 99c56d34..040a29ea 100644 --- a/pv/views/trace/timemarker.hpp +++ b/pv/views/trace/timemarker.hpp @@ -17,8 +17,8 @@ * along with this program; if not, see . */ -#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_MARKER_HPP -#define PULSEVIEW_PV_VIEWS_TRACEVIEW_MARKER_HPP +#ifndef PULSEVIEW_PV_VIEWS_TRACE_TIMEMARKER_HPP +#define PULSEVIEW_PV_VIEWS_TRACE_TIMEMARKER_HPP #include #include @@ -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. @@ -134,4 +139,4 @@ protected: } // namespace views } // namespace pv -#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_MARKER_HPP +#endif // PULSEVIEW_PV_VIEWS_TRACE_TIMEMARKER_HPP