X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fsignal.h;h=b3212394115df5c5b043d27969cb8dcdfd117d84;hp=6f08e947c61a36958a8efbf5a0a380739576373d;hb=2e57535108a0ae2e5d1ee454f1e61b71d23afdb3;hpb=a2f71ef0465ce94c6a1006adf520ba76605b457e diff --git a/pv/view/signal.h b/pv/view/signal.h index 6f08e947..b3212394 100644 --- a/pv/view/signal.h +++ b/pv/view/signal.h @@ -65,6 +65,16 @@ public: */ void set_colour(QColor colour); + /** + * Gets the vertical layout offset of this signal. + */ + int get_v_offset() const; + + /** + * Sets the vertical layout offset of this signal. + */ + void set_v_offset(int v_offset); + /** * Paints the signal with a QPainter * @param p the QPainter to paint into. @@ -118,6 +128,7 @@ protected: protected: QString _name; QColor _colour; + int _v_offset; QSizeF _text_size; };