Commit ecda92e0 authored by David Edmundson's avatar David Edmundson
Browse files

Introduce a new signal when a drag is dropped

parent 39884136
......@@ -316,6 +316,7 @@ void SeatInterfacePrivate::endDrag(quint32 serial)
if (dragSource) {
// TODO: Also check the current drag-and-drop action.
if (dragTargetDevice && dragSource->isAccepted()) {
Q_EMIT q->dragDropped();
dragTargetDevice->drop();
dragSource->dropPerformed();
} else {
......
......@@ -657,6 +657,11 @@ Q_SIGNALS:
* @see dragSurface
*/
void dragSurfaceChanged();
/** Emitted when a drop ocurrs in a drag'n'drop operation. This is emitted
* before dragEnded
*/
void dragDropped();
/**
* Emitted whenever the focused text input changed.
* @see focusedTextInput
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment