X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fruler.hpp;h=f6ce99dc833985b2175a13a55078128e6d2f96ff;hb=3231fbf9374113d07d3d544a4822ae46032062a2;hp=aabbe486cd8a93f8d3b986a26150aee4f40f739c;hpb=b2650e6978b19c44a6fc375931bc412ad4eefa5b;p=pulseview.git diff --git a/pv/view/ruler.hpp b/pv/view/ruler.hpp index aabbe486..f6ce99dc 100644 --- a/pv/view/ruler.hpp +++ b/pv/view/ruler.hpp @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_VIEW_RULER_HPP -#define PULSEVIEW_PV_VIEW_RULER_HPP +#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_RULER_HPP +#define PULSEVIEW_PV_VIEWS_TRACEVIEW_RULER_HPP #include #include @@ -36,7 +36,8 @@ struct tick_position_test_2; } namespace pv { -namespace view { +namespace views { +namespace TraceView { class TimeItem; class ViewItem; @@ -109,7 +110,7 @@ private: /** * Gets the time items. */ - std::vector< std::shared_ptr > items() override; + std::vector< std::shared_ptr > items() override; /** * Gets the first view item which has a label that contains @c pt . @@ -117,12 +118,12 @@ private: * @return the view item that has been found, or and empty * @c shared_ptr if no item was found. */ - std::shared_ptr get_mouse_over_item( + std::shared_ptr get_mouse_over_item( const QPoint &pt) override; void paintEvent(QPaintEvent *event) override; - void mouseDoubleClickEvent(QMouseEvent *e) override; + void mouseDoubleClickEvent(QMouseEvent *event) override; /** * Draw a hover arrow under the cursor position. @@ -174,7 +175,8 @@ private Q_SLOTS: void invalidate_tick_position_cache(); }; -} // namespace view +} // namespace TraceView +} // namespace views } // namespace pv -#endif // PULSEVIEW_PV_VIEW_RULER_HPP +#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_RULER_HPP