X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fview%2Fruler.hpp;h=f717c3785674c2b814838b915a18d18741ad6fed;hb=c677193dc6e691493081fe87476a04e1674093a5;hp=d01b151243aeb2ea3c9a32ab8a3077cf20a76677;hpb=4b0af0b67fe57e0880bcb8aa13b4fa807f3aaac0;p=pulseview.git diff --git a/pv/view/ruler.hpp b/pv/view/ruler.hpp index d01b151..f717c37 100644 --- a/pv/view/ruler.hpp +++ b/pv/view/ruler.hpp @@ -29,6 +29,12 @@ #include "marginwidget.hpp" #include +namespace RulerTest { +class tick_position_test_0; +class tick_position_test_1; +class tick_position_test_2; +} + namespace pv { namespace view { @@ -39,6 +45,10 @@ class Ruler : public MarginWidget { Q_OBJECT + friend class RulerTest::tick_position_test_0; + friend class RulerTest::tick_position_test_1; + friend class RulerTest::tick_position_test_2; + private: /// Height of the ruler in multipes of the text height @@ -116,7 +126,7 @@ private: * tick positions. */ static TickPositions calculate_tick_positions( - const double major_period, + const pv::util::Timestamp& major_period, const pv::util::Timestamp& offset, const double scale, const int width,