]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/viewitem.hpp
Fix #1292/1294 by snapping to any edge when not hovering over a signal
[pulseview.git] / pv / views / trace / viewitem.hpp
index 89a57e5edeb248b2dab9b59618cab71b9d268667..53ed2a60cbe891c578ba30c65eb50adb5da34c48 100644 (file)
@@ -59,6 +59,11 @@ public:
         */
        virtual bool enabled() const = 0;
 
+       /**
+        * Returns true if the item may be selected.
+        */
+       virtual bool is_selectable(QPoint pos) const;
+
        /**
         * Returns true if the item has been selected by the user.
         */
@@ -72,7 +77,7 @@ public:
        /**
         * Returns true if the item may be dragged/moved.
         */
-       virtual bool is_draggable() const;
+       virtual bool is_draggable(QPoint pos) const;
 
        /**
         * Returns true if the item is being dragged.