X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fruler.h;h=f40f8255379166a06084c82c5c906783fb563346;hp=7bdde99c15c3066dfaac5a1e37b6ee95306e123f;hb=3a6fe0818affcb40b2821eab3f633e536377dd81;hpb=3f509c1f40fa91f3bf4468b648cdb01bc45b0cb8 diff --git a/pv/view/ruler.h b/pv/view/ruler.h index 7bdde99c..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,10 +56,7 @@ private: void mouseReleaseEvent(QMouseEvent *); private: - static QString format_time(double t, double multiplier, - unsigned int prefix); - - void draw_cursors(QPainter &p); + void draw_cursors(QPainter &p, unsigned int prefix); /** * Draw a hover arrow under the cursor position.