From: Soeren Apel Date: Fri, 8 Nov 2019 09:07:14 +0000 (+0100) Subject: Fix compiler warnings X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=93dbad3ed4954c3e0c140c26e867bda219cd683f;p=pulseview.git Fix compiler warnings --- diff --git a/pv/views/trace/cursor.hpp b/pv/views/trace/cursor.hpp index 08be9707..0da72e9f 100644 --- a/pv/views/trace/cursor.hpp +++ b/pv/views/trace/cursor.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;