X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fcursorpair.hpp;h=fc9f0d1ba6f4a4edc718e869bfe61dd381588641;hp=af7f5556c722bc83609e72664a5b610858072d08;hb=49028d6c2d8aaf61b528e2dfb7ad3fe1ccb7169e;hpb=819e2e95555b2b3c2190f24a3cfa82250d1f34e5 diff --git a/pv/view/cursorpair.hpp b/pv/view/cursorpair.hpp index af7f5556..fc9f0d1b 100644 --- a/pv/view/cursorpair.hpp +++ b/pv/view/cursorpair.hpp @@ -74,7 +74,13 @@ public: public: QRectF label_rect(const QRectF &rect) const; - void paint_label(QPainter &p, const QRect &rect); + /** + * Paints the marker's label to the ruler. + * @param p The painter to draw with. + * @param rect The rectangle of the ruler client area. + * @param hover true if the label is being hovered over by the mouse. + */ + void paint_label(QPainter &p, const QRect &rect, bool hover); /** * Paints the background layer of the item with a QPainter