]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/timeitem.hpp
Add temporary snapping disable menu to markers and cursors
[pulseview.git] / pv / views / trace / timeitem.hpp
index e0114a5aca8e36a9434c1fe3b92aec8d2f487d37..06d850505ce8ebde350ecfbcbaeecbd5b3a79c3a 100644 (file)
@@ -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_;
 };