X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fruler.h;h=f40f8255379166a06084c82c5c906783fb563346;hb=3a6fe0818affcb40b2821eab3f633e536377dd81;hp=129b70cbe54520d0ccebb2b829a91f3b7211e496;hpb=ca4ec3eab886e62c0f9d0cc91636383a74ad5d7b;p=pulseview.git diff --git a/pv/view/ruler.h b/pv/view/ruler.h index 129b70cb..f40f8255 100644 --- a/pv/view/ruler.h +++ b/pv/view/ruler.h @@ -45,6 +45,9 @@ private: public: Ruler(View &parent); + static QString format_time(double t, unsigned int prefix, + unsigned precision = 0); + private: void paintEvent(QPaintEvent *event); @@ -53,7 +56,7 @@ private: void mouseReleaseEvent(QMouseEvent *); private: - void draw_cursors(QPainter &p); + void draw_cursors(QPainter &p, unsigned int prefix); /** * Draw a hover arrow under the cursor position.