treewidgetwithdnd¶
Extend QTreeWidget to handle drag and drop functionality
-
class
openlp.core.ui.lib.treewidgetwithdnd.
TreeWidgetWithDnD
(parent=None, name='')[source]¶ Bases:
PyQt5.QtWidgets.QTreeWidget
Provide a tree widget to store objects and handle drag and drop events
-
dragEnterEvent
(event)[source]¶ Receive drag enter event, check if it is a file or internal object and allow it if it is.
Parameters: event – The event that occurred
-
dragMoveEvent
(event)[source]¶ Receive drag move event, check if it is a file or internal object and allow it if it is.
Parameters: event – The event that occurred
-