]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/timemarker.hpp
Backport recent changes from mainline.
[pulseview.git] / pv / views / trace / timemarker.hpp
index 48afc16bb77e9c346ec75e80c06ab3564873ecc1..cd7c84d279747cddf13fb0a6fd58c11af5292b3f 100644 (file)
@@ -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.
@@ -128,7 +133,6 @@ protected:
 
        QWidgetAction *value_action_;
        pv::widgets::TimestampSpinBox *value_widget_;
-       bool updating_value_widget_;
 };
 
 } // namespace trace