Introduce a new signal when a drag is dropped

This commit is contained in:
David Edmundson 2021-06-02 14:06:42 +01:00
parent 398841363b
commit ecda92e023
2 changed files with 6 additions and 0 deletions

View file

@ -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 {

View file

@ -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