Wrapped Cursors in a shared_ptr
[pulseview.git] / pv / view / cursor.h
index 2e16882dac28613b1d81796a4b2a216c10d413bd..89ea1e715e3f1a0c83dc4b2de32056cd32f98bfa 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "timemarker.h"
 
+#include <boost/shared_ptr.hpp>
+
 #include <QSizeF>
 
 class QPainter;
@@ -34,7 +36,7 @@ class Cursor : public TimeMarker
 {
        Q_OBJECT
 
-private:
+public:
        static const QColor LineColour;
        static const QColor FillColour;
        static const QColor HighlightColour;
@@ -72,6 +74,8 @@ public:
 private:
        void compute_text_size(QPainter &p, unsigned int prefix);
 
+       boost::shared_ptr<Cursor> get_other_cursor() const;
+
 private:
        QSizeF _text_size;
 };