]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/cursor.hpp
Fix a few #include guard inconsistencies.
[pulseview.git] / pv / views / trace / cursor.hpp
index ad91b05979e2ac02f0388cc1fe7af77694079f5f..73e84ee8d377fbb4ab006ff4ba5781bfd260c851 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#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"
 
@@ -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<Cursor> get_other_cursor() const;
@@ -75,4 +77,4 @@ private:
 } // namespace views
 } // namespace pv
 
-#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_CURSOR_HPP
+#endif // PULSEVIEW_PV_VIEWS_TRACE_CURSOR_HPP