X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fruler.hpp;h=b14148728c579b8c8f2885c8a76859fae976a3ca;hp=61e622ac7afa350bf7ea1cfd1852fa465f7cf4b8;hb=e23567ed84aa55e2a0c48252080058186f6b80e7;hpb=2543cd4e271ff13898080d011a8fdbc13da77655 diff --git a/pv/views/trace/ruler.hpp b/pv/views/trace/ruler.hpp index 61e622a..b141487 100644 --- a/pv/views/trace/ruler.hpp +++ b/pv/views/trace/ruler.hpp @@ -117,7 +117,7 @@ public: unsigned precision = 0, bool sign = true); - pv::util::Timestamp get_time_from_x_pos(uint32_t x); + pv::util::Timestamp get_time_from_x_pos(uint32_t x) const; protected: virtual void contextMenuEvent(QContextMenuEvent *event) override; @@ -171,11 +171,13 @@ private: function format_function); private Q_SLOTS: - void hover_point_changed(const QPoint &hp); + void on_hover_point_changed(const QWidget* widget, const QPoint &hp); void invalidate_tick_position_cache(); void on_createMarker(); + void on_setZeroPosition(); + void on_toggleHoverMarker(); private: /**