listwidgetwithdnd¶
Extend QListWidget to handle drag and drop functionality
- class openlp.core.lib.listwidgetwithdnd.ListWidgetWithDnD(parent=None, name='')[source]¶
Bases: PyQt5.QtWidgets.QListWidget
Provide a list widget to store objects and handle drag and drop events
- dragEnterEvent(event)[source]¶
When something is dragged into this object, check if you should be able to drop it in here.
- dragMoveEvent(event)[source]¶
Make an object droppable, and set it to copy the contents of the object, not move it.