]> sigrok.org Git - pulseview.git/blobdiff - pv/view/ruler.h
Improved painting of cursor values
[pulseview.git] / pv / view / ruler.h
index 7bdde99c15c3066dfaac5a1e37b6ee95306e123f..f40f8255379166a06084c82c5c906783fb563346 100644 (file)
@@ -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.