X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fcursor.hpp;h=0da72e9fa5e3744b9d7c8f3ed2f1c84b3be02f71;hb=6202cf13abc361af4d1419dc56eaabc314900692;hp=ad91b05979e2ac02f0388cc1fe7af77694079f5f;hpb=1573bf16ba50d1c023ad3a9ce596f0ab6eaeacff;p=pulseview.git diff --git a/pv/views/trace/cursor.hpp b/pv/views/trace/cursor.hpp index ad91b059..0da72e9f 100644 --- a/pv/views/trace/cursor.hpp +++ b/pv/views/trace/cursor.hpp @@ -39,7 +39,7 @@ class Cursor : public TimeMarker Q_OBJECT public: - static const QColor FillColour; + static const QColor FillColor; public: /** @@ -53,19 +53,21 @@ 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; /** * Gets the marker label rectangle. * @param rect The rectangle of the ruler client area. * @return Returns the label rectangle. */ - QRectF label_rect(const QRectF &rect) const; + virtual QRectF label_rect(const QRectF &rect) const override; + + virtual QMenu* create_header_context_menu(QWidget *parent) override; private: shared_ptr get_other_cursor() const;