X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fruler.hpp;h=073c86c9e600533f66ae3389f99a7e29660ee8ec;hb=361c560ed9ef67278916e086ed0b0649ae01b583;hp=438b862c53440c12d41e3f8fce33c76d6e98c05a;hpb=f65cd27bdbf70644052dd43dac4bbe9403f4dfee;p=pulseview.git diff --git a/pv/view/ruler.hpp b/pv/view/ruler.hpp index 438b862..073c86c 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;