X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fview.hpp;h=b7d35e3c4102207998243147b0d2ab942c31d8c7;hb=ef454ad5cf454ae2da91b45219e1be2e010d8312;hp=2c81e74782cbbac3d3948aec2c9ca963d90632ae;hpb=96b6316ab8ed24551a0affb7a5819d1c97147a5c;p=pulseview.git diff --git a/pv/view/view.hpp b/pv/view/view.hpp index 2c81e74..b7d35e3 100644 --- a/pv/view/view.hpp +++ b/pv/view/view.hpp @@ -34,6 +34,7 @@ #include #include +#include #include "cursorpair.hpp" #include "flag.hpp" @@ -129,6 +130,11 @@ public: */ double tick_period() const; + /** + * Returns the unit of time currently used. + */ + util::TimeUnit time_unit() const; + /** * Returns the number of nested parents that this row item owner has. */ @@ -259,6 +265,8 @@ private: std::shared_ptr > &signal_map, std::set< std::shared_ptr > &add_list); + void determine_time_unit(); + private: bool eventFilter(QObject *object, QEvent *event); @@ -306,6 +314,7 @@ private: double tick_period_; unsigned int tick_prefix_; + util::TimeUnit time_unit_; bool show_cursors_; std::shared_ptr cursors_;