Commits on Source (4)
-
In some cases, drop indicator may need to be customized. This also allows disabling the indicator completely. The way it works is by instantiating the drop indicator from the component property once `itemContainsDrag`, which is an optional property, changes.
81a50fac -
43df33c6
-
This makes it possible to not re-invent drop indicator positioning, and also allows rejecting the drag event when drop is not applicable. In order to reject drag event when not applicable, there needs to be two drop areas. This has been the case in `PlaylistListView/Delegate` but not in `TableViewExt/Delegate`. With this patch, I followed the same approach used in `PlaylistListView` which has a rather proven track record on drag and drop functionality.
0174b492 -
f482c601
Showing
- modules/gui/qt/medialibrary/qml/PlaylistMedia.qml 2 additions, 78 deletionsmodules/gui/qt/medialibrary/qml/PlaylistMedia.qml
- modules/gui/qt/medialibrary/qml/PlaylistMediaList.qml 11 additions, 9 deletionsmodules/gui/qt/medialibrary/qml/PlaylistMediaList.qml
- modules/gui/qt/playlist/qml/PlaylistDelegate.qml 9 additions, 65 deletionsmodules/gui/qt/playlist/qml/PlaylistDelegate.qml
- modules/gui/qt/widgets/qml/ListViewExt.qml 83 additions, 5 deletionsmodules/gui/qt/widgets/qml/ListViewExt.qml
- modules/gui/qt/widgets/qml/TableViewDelegate.qml 16 additions, 28 deletionsmodules/gui/qt/widgets/qml/TableViewDelegate.qml
- modules/gui/qt/widgets/qml/TableViewExt.qml 2 additions, 20 deletionsmodules/gui/qt/widgets/qml/TableViewExt.qml