]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/flag.hpp
Backport recent changes from mainline.
[pulseview.git] / pv / views / trace / flag.hpp
index 4bf6ebd5db7f974a9857e733ce0b49c8cbde046f..e58771b81a4f4f603d8171fdfb8905d8a6edb6e1 100644 (file)
@@ -60,18 +60,25 @@ public:
        /**
         * Returns true if the item is visible and enabled.
         */
-       bool enabled() const;
+       virtual bool enabled() const override;
 
        /**
         * Gets the text to show in the marker.
         */
-       QString get_text() const;
+       virtual QString get_text() const override;
 
-       pv::widgets::Popup* create_popup(QWidget *parent);
+       /**
+        * Sets the text to show in the marker.
+        */
+       virtual void set_text(const QString &text) override;
+
+       virtual pv::widgets::Popup* create_popup(QWidget *parent) override;
+
+       virtual QMenu* create_header_context_menu(QWidget *parent) override;
 
-       QMenu* create_header_context_menu(QWidget *parent);
+       virtual void delete_pressed() override;
 
-       void delete_pressed();
+       QRectF label_rect(const QRectF &rect) const override;
 
 private Q_SLOTS:
        void on_delete();