]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/ruler.hpp
Make cursor pair drop precision when too small
[pulseview.git] / pv / views / trace / ruler.hpp
index b14148728c579b8c8f2885c8a76859fae976a3ca..3a9fea910d26febacb20cba1d156fc2486210cbc 100644 (file)
@@ -115,9 +115,11 @@ public:
                pv::util::SIPrefix prefix = pv::util::SIPrefix::unspecified,
                pv::util::TimeUnit unit = pv::util::TimeUnit::Time,
                unsigned precision = 0,
-               bool sign = true);
+               bool sign = true,
+               bool show_unit = true);
 
-       pv::util::Timestamp get_time_from_x_pos(uint32_t x) const;
+       pv::util::Timestamp get_absolute_time_from_x_pos(uint32_t x) const;
+       pv::util::Timestamp get_ruler_time_from_x_pos(uint32_t x) const;
 
 protected:
        virtual void contextMenuEvent(QContextMenuEvent *event) override;