]> sigrok.org Git - pulseview.git/blobdiff - pv/view/viewwidget.hpp
ViewWidget: Added mouse_down
[pulseview.git] / pv / view / viewwidget.hpp
index fc7247627a8783f1a55bf81dc31526da151c8032..65434f65e1720913ab2589f3cfd932fe1c873b46 100644 (file)
@@ -52,6 +52,11 @@ protected:
         */
        bool accept_drag() const;
 
+       /**
+        * Returns true if the mouse button is down.
+        */
+       bool mouse_down() const;
+
        /**
         * Drag the dragging items by the delta offset.
         * @param delta the drag offset in pixels.
@@ -102,7 +107,7 @@ protected:
        QPoint mouse_point_;
        QPoint mouse_down_point_;
        std::shared_ptr<ViewItem> mouse_down_item_;
-       bool dragging_;
+       bool item_dragging_;
 };
 
 } // namespace view