X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fruler.h;h=689b073cede32e81af7e43e901057c2c93e515bf;hb=b087ba7fd88610cbf54f6371367c7b9f9829dc63;hp=129b70cbe54520d0ccebb2b829a91f3b7211e496;hpb=ca4ec3eab886e62c0f9d0cc91636383a74ad5d7b;p=pulseview.git diff --git a/pv/view/ruler.h b/pv/view/ruler.h index 129b70c..689b073 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. */