X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fruler.hpp;h=073c86c9e600533f66ae3389f99a7e29660ee8ec;hb=d4e39570ee6021766c375654801dddba45b9198a;hp=438b862c53440c12d41e3f8fce33c76d6e98c05a;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329;p=pulseview.git diff --git a/pv/view/ruler.hpp b/pv/view/ruler.hpp index 438b862c..073c86c9 100644 --- a/pv/view/ruler.hpp +++ b/pv/view/ruler.hpp @@ -35,25 +35,12 @@ class Ruler : public MarginWidget private: static const int RulerHeight; static const int MinorTickSubdivision; - static const int ScaleUnits[3]; static const int HoverArrowSize; public: Ruler(View &parent); - /** - * Find a tick spacing and number formatting that does not cause - * the values to collide. - * @param p A QPainter used to determine the needed space for the values. - * @param scale A pv::view::View's scale. - * @param offset A pv::view::View's offset. - * - * @return The tick period to use in 'first' and the prefix in 'second'. - */ - static std::pair calculate_tick_spacing( - QPainter& p, double scale, double offset); - public: QSize sizeHint() const;