]> sigrok.org Git - pulseview.git/blobdiff - pv/view/trace.hpp
SamplingBar: Handle a failure to list the LIMIT_SAMPLES key
[pulseview.git] / pv / view / trace.hpp
index 7d5158c3a0d36d237e3e2c9596ea87d399083483..e6e053dac26c114828843b508a13c4bdb4819067 100644 (file)
@@ -73,6 +73,13 @@ public:
         */
        void set_colour(QColor colour);
 
+       /**
+        * Computes the outline rectangle of the viewport hit-box.
+        * @param rect the rectangle of the viewport area.
+        * @return Returns the rectangle of the hit-box.
+        */
+       QRectF hit_box_rect(const QRectF &rect) const;
+
        /**
         * Paints the signal label.
         * @param p the QPainter to paint into.
@@ -99,7 +106,7 @@ protected:
         * @param pp the painting parameters object to paint with.
         * @param y the y-offset of the axis.
         */
-       void paint_axis(QPainter &p, const RowItemPaintParams &pp, int y);
+       void paint_axis(QPainter &p, const ViewItemPaintParams &pp, int y);
 
        void add_colour_option(QWidget *parent, QFormLayout *form);