]> sigrok.org Git - pulseview.git/blobdiff - pv/view/cursorpair.hpp
CursorPair: Added frequency indication
[pulseview.git] / pv / view / cursorpair.hpp
index 7e089083f0d34ecb426c8b2de3977cc799a01934..aacc7d8c2b3272144be7fd6f9a7930a2d10ca129 100644 (file)
@@ -68,7 +68,7 @@ public:
 
        float get_x() const;
 
-       QPoint point() const;
+       QPoint point(const QRect &rect) const;
 
        pv::widgets::Popup* create_popup(QWidget *parent);
 
@@ -90,7 +90,12 @@ public:
         **/
        void paint_back(QPainter &p, const ViewItemPaintParams &pp);
 
-       void compute_text_size(QPainter &p, unsigned int prefix);
+       /**
+        * Constructs the string to display.
+        */
+       QString format_string();
+
+       void compute_text_size(QPainter &p);
 
        std::pair<float, float> get_cursor_offsets() const;