]> sigrok.org Git - pulseview.git/blobdiff - pv/view/cursorpair.hpp
TimeItem: Added mandatory get_x virtual method
[pulseview.git] / pv / view / cursorpair.hpp
index 12ed76af9ce18012a74a18456cb889c292163e54..43e06545ad4fd94cfe6690dc473906fa9fd3d910 100644 (file)
@@ -60,12 +60,19 @@ public:
         */
        std::shared_ptr<Cursor> second() const;
 
+       /**
+        * Sets the time of the marker.
+        */
+       void set_time(double time);
+
+       float get_x() const;
+
        QPoint point() const;
 
        pv::widgets::Popup* create_popup(QWidget *parent);
 
 public:
-       QRectF get_label_rect(const QRect &rect) const;
+       QRectF label_rect(const QRectF &rect) const;
 
        void draw_markers(QPainter &p, const QRect &rect);