X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fruler.h;h=689b073cede32e81af7e43e901057c2c93e515bf;hb=f796cf5163179e9df5cac676d0e3131be765b013;hp=129b70cbe54520d0ccebb2b829a91f3b7211e496;hpb=ca4ec3eab886e62c0f9d0cc91636383a74ad5d7b;p=pulseview.git diff --git a/pv/view/ruler.h b/pv/view/ruler.h index 129b70cb..689b073c 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,8 +56,6 @@ private: void mouseReleaseEvent(QMouseEvent *); private: - void draw_cursors(QPainter &p); - /** * Draw a hover arrow under the cursor position. */