X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fdecode%2Fannotation.h;h=94b7dc90c9fabfdb330c9d14f5105018f56612a4;hp=d0282114a21972c3eb53de8b253a55c5c5fd2556;hb=db62bbfda512aeddca5b9d7b5960e9cf24b8859c;hpb=6ad174e055b76e5dd68014382c80f7137e8320b9 diff --git a/pv/view/decode/annotation.h b/pv/view/decode/annotation.h index d0282114..94b7dc90 100644 --- a/pv/view/decode/annotation.h +++ b/pv/view/decode/annotation.h @@ -47,15 +47,15 @@ public: void paint(QPainter &p, QColor text_colour, int text_height, int left, int right, double samples_per_pixel, double pixels_offset, - int y); + int y) const; private: void draw_instant(QPainter &p, QColor fill, QColor outline, - QColor text_color, int h, double x, int y); + QColor text_color, int h, double x, int y) const; void draw_range(QPainter &p, QColor fill, QColor outline, QColor text_color, int h, double start, - double end, int y); + double end, int y) const; private: uint64_t _start_sample;