X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fcursor.hpp;h=73e84ee8d377fbb4ab006ff4ba5781bfd260c851;hb=cf1541a18fcd007c9965a3199b9c4f917856b292;hp=08be9707eb1fcbc4c7cc4eb4ce3326806eb498a8;hpb=0aabc15a4e23b2a636d2452ae1a69981bdb77329;p=pulseview.git diff --git a/pv/views/trace/cursor.hpp b/pv/views/trace/cursor.hpp index 08be9707..73e84ee8 100644 --- a/pv/views/trace/cursor.hpp +++ b/pv/views/trace/cursor.hpp @@ -17,8 +17,8 @@ * along with this program; if not, see . */ -#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_CURSOR_HPP -#define PULSEVIEW_PV_VIEWS_TRACEVIEW_CURSOR_HPP +#ifndef PULSEVIEW_PV_VIEWS_TRACE_CURSOR_HPP +#define PULSEVIEW_PV_VIEWS_TRACE_CURSOR_HPP #include "timemarker.hpp" @@ -53,19 +53,19 @@ 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; @@ -77,4 +77,4 @@ private: } // namespace views } // namespace pv -#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_CURSOR_HPP +#endif // PULSEVIEW_PV_VIEWS_TRACE_CURSOR_HPP