X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Ftimeitem.hpp;h=acac3273955f49c862932fbfe4ad3654e6e0ac07;hp=e0114a5aca8e36a9434c1fe3b92aec8d2f487d37;hb=HEAD;hpb=e4e951b7fcfa4c6bf36547d0106bfa730fceb92c diff --git a/pv/views/trace/timeitem.hpp b/pv/views/trace/timeitem.hpp index e0114a5a..acac3273 100644 --- a/pv/views/trace/timeitem.hpp +++ b/pv/views/trace/timeitem.hpp @@ -17,8 +17,8 @@ * along with this program; if not, see . */ -#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_TIMEITEM_HPP -#define PULSEVIEW_PV_VIEWS_TRACEVIEW_TIMEITEM_HPP +#ifndef PULSEVIEW_PV_VIEWS_TRACE_TIMEITEM_HPP +#define PULSEVIEW_PV_VIEWS_TRACE_TIMEITEM_HPP #include "viewitem.hpp" @@ -43,6 +43,8 @@ protected: */ TimeItem(View &view); + bool snapping_disabled_ = false; + public: /** * Sets the time of the marker. @@ -65,6 +67,8 @@ public: */ void drag_by(const QPoint &delta); + bool is_snapping_disabled() const; + protected: View &view_; }; @@ -73,4 +77,4 @@ protected: } // namespace views } // namespace pv -#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_TIMEITEM_HPP +#endif // PULSEVIEW_PV_VIEWS_TRACE_TIMEITEM_HPP