X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fflag.hpp;h=5edf90b01ef63997595415d32e0fc6faea35c0d3;hb=d01fcb19af6b6c9dd3c6c568e4be71a3cedc8003;hp=2df13ca805e3ee74e5a185a372fc55049c7c8c80;hpb=1373fec59223e7511078abe3dbf4a6b61b4af234;p=pulseview.git diff --git a/pv/views/trace/flag.hpp b/pv/views/trace/flag.hpp index 2df13ca8..5edf90b0 100644 --- a/pv/views/trace/flag.hpp +++ b/pv/views/trace/flag.hpp @@ -41,7 +41,7 @@ class Flag : public TimeMarker, public enable_shared_from_this Q_OBJECT public: - static const QColor FillColour; + static const QColor FillColor; public: /** @@ -60,18 +60,20 @@ 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); + virtual pv::widgets::Popup* create_popup(QWidget *parent) override; - QMenu* create_context_menu(QWidget *parent); + virtual QMenu* create_header_context_menu(QWidget *parent) override; - void delete_pressed(); + virtual void delete_pressed() override; + + QRectF label_rect(const QRectF &rect) const override; private Q_SLOTS: void on_delete();