X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fruler.hpp;h=073c86c9e600533f66ae3389f99a7e29660ee8ec;hp=438b862c53440c12d41e3f8fce33c76d6e98c05a;hb=4c8a6a6d03e2a12f67d910a83589072b478114cb;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329 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;