X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fcursor.h;h=89ea1e715e3f1a0c83dc4b2de32056cd32f98bfa;hb=137ed2551534f005bf79b24bd6c95eef1be5611b;hp=2bedb5e9336b45518dd54514b6a3062945667d57;hpb=b42d25c43e52c900cbdd3e5cde0282961b8721e7;p=pulseview.git diff --git a/pv/view/cursor.h b/pv/view/cursor.h index 2bedb5e9..89ea1e71 100644 --- a/pv/view/cursor.h +++ b/pv/view/cursor.h @@ -23,6 +23,8 @@ #include "timemarker.h" +#include + #include class QPainter; @@ -34,13 +36,12 @@ class Cursor : public TimeMarker { Q_OBJECT -private: +public: static const QColor LineColour; static const QColor FillColour; static const QColor HighlightColour; static const QColor TextColour; - static const int Size; static const int Offset; static const int ArrowSize; @@ -73,6 +74,8 @@ public: private: void compute_text_size(QPainter &p, unsigned int prefix); + boost::shared_ptr get_other_cursor() const; + private: QSizeF _text_size; };