*/
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.
QPoint mouse_point_;
QPoint mouse_down_point_;
std::shared_ptr<ViewItem> mouse_down_item_;
- bool dragging_;
+ bool item_dragging_;
};
} // namespace view