[QScintilla] force copy-action when drag&dropping between two QScintilla widgets

Marc Gronle marc.gronle at ito.uni-stuttgart.de
Wed Sep 17 13:08:14 BST 2014


Hi there,

I try to enable a drag&drop-action between to QScintilla widgets but I
don't want that the text of the source window is deleted if no keyboard
modifiers are used once the text is dropped onto another text field.

I tried to changed the defaultDropAction in the drop-event of the receiver
widget, however QSciScinitllabase::dropEvent calls acceptAction (private)
that calls acceptProposedAction() instead of accept() such that the
original default action of QDrag::exec is used (MoveAction).

Unfortunately acceptAction is private and cannot be overwritten.
Is there another possibility to force the source QScintilla instance not to
delete the text after an arbitrary drag&drop action?

I'm thankful for any suggestion.

Cheers
Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20140917/49f7678b/attachment.html>


More information about the QScintilla mailing list