]> sigrok.org Git - pulseview.git/blobdiff - pv/view/ruler.hpp
RowItemPaintParams: Bundled scale and offset
[pulseview.git] / pv / view / ruler.hpp
index 438b862c53440c12d41e3f8fce33c76d6e98c05a..073c86c9e600533f66ae3389f99a7e29660ee8ec 100644 (file)
@@ -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<double, unsigned int> calculate_tick_spacing(
-               QPainter& p, double scale, double offset);
-
 public:
        QSize sizeHint() const;