Introduce a new signal when a drag is dropped
This commit is contained in:
parent
398841363b
commit
ecda92e023
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue