return false;
}
+bool ViewWidget::mouse_down() const
+{
+ return mouse_down_point_.x() != INT_MIN &&
+ mouse_down_point_.y() != INT_MIN;
+}
+
void ViewWidget::drag_items(const QPoint &delta)
{
// Drag the row items
if (event->button() & Qt::LeftButton)
mouse_left_release_event(event);
+ mouse_down_point_ = QPoint(INT_MIN, INT_MIN);
mouse_down_item_ = nullptr;
}
*/
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.