X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fviewport.hpp;h=48f2d09c9d0c4c178535c089bdc86a7a064d26fc;hb=cf1541a18fcd007c9965a3199b9c4f917856b292;hp=ab67f69f3ee2d618895b6d5595a7251f97ef538c;hpb=1573bf16ba50d1c023ad3a9ce596f0ab6eaeacff;p=pulseview.git diff --git a/pv/views/trace/viewport.hpp b/pv/views/trace/viewport.hpp index ab67f69f..48f2d09c 100644 --- a/pv/views/trace/viewport.hpp +++ b/pv/views/trace/viewport.hpp @@ -17,11 +17,12 @@ * along with this program; if not, see . */ -#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWPORT_HPP -#define PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWPORT_HPP +#ifndef PULSEVIEW_PV_VIEWS_TRACE_VIEWPORT_HPP +#define PULSEVIEW_PV_VIEWS_TRACE_VIEWPORT_HPP #include +#include #include #include @@ -48,14 +49,6 @@ class Viewport : public ViewWidget public: explicit Viewport(View &parent); -private: - /** - * Indicates when a view item is being hovered over. - * @param item The item that is being hovered over, or @c nullptr - * if no view item is being hovered over. - */ - void item_hover(const shared_ptr &item); - /** * Gets the first view item which has a hit-box that contains @c pt . * @param pt the point to search with. @@ -64,6 +57,14 @@ private: */ shared_ptr get_mouse_over_item(const QPoint &pt); +private: + /** + * Indicates when a view item is being hovered over. + * @param item The item that is being hovered over, or @c nullptr + * if no view item is being hovered over. + */ + void item_hover(const shared_ptr &item, QPoint pos); + /** * Sets this item into the dragged state. */ @@ -110,4 +111,4 @@ private: } // namespace views } // namespace pv -#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWPORT_HPP +#endif // PULSEVIEW_PV_VIEWS_TRACE_VIEWPORT_HPP