X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fview.hpp;h=5f81d443c8f53e08353e91d13b9534b7a6805dd7;hp=90a9b877cb04b164d5bedd8d19f1c244fd1cc848;hb=c677193dc6e691493081fe87476a04e1674093a5;hpb=4b0af0b67fe57e0880bcb8aa13b4fa807f3aaac0 diff --git a/pv/view/view.hpp b/pv/view/view.hpp index 90a9b87..5f81d44 100644 --- a/pv/view/view.hpp +++ b/pv/view/view.hpp @@ -133,7 +133,7 @@ public: /** * Returns period of the graticule time markings. */ - double tick_period() const; + const pv::util::Timestamp& tick_period() const; /** * Returns the unit of time currently used. @@ -343,7 +343,7 @@ private Q_SLOTS: * Sets the 'tick_period_' member and emits the 'tick_period_changed' * signal if needed. */ - void set_tick_period(double tick_period); + void set_tick_period(const pv::util::Timestamp& tick_period); /** * Sets the 'time_unit' member and emits the 'time_unit_changed' @@ -369,7 +369,7 @@ private: bool always_zoom_to_fit_; QTimer delayed_view_updater_; - double tick_period_; + pv::util::Timestamp tick_period_; pv::util::SIPrefix tick_prefix_; unsigned int tick_precision_; util::TimeUnit time_unit_;