[vlc-commits] qml: add item animations to playlist listview
Fatih Uzunoglu
git at videolan.org
Fri Jul 24 11:45:47 CEST 2020
vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Wed Jul 1 18:14:29 2020 +0300| [295f54c8d9a416b8afcc2af8a749ccea057e4128] | committer: Pierre Lamot
qml: add item animations to playlist listview
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=295f54c8d9a416b8afcc2af8a749ccea057e4128
---
modules/gui/qt/playlist/qml/PlaylistListView.qml | 9 +++++++++
modules/gui/qt/widgets/qml/KeyNavigableListView.qml | 3 +++
2 files changed, 12 insertions(+)
diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index a6bfd58234..56f76e5801 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -315,6 +315,15 @@ Widgets.NavigableFocusScope {
}
}
+ add: Transition {
+ NumberAnimation { property: "opacity"; from: 0; to: 1.0; duration: 200 }
+ }
+
+ displaced: Transition {
+ NumberAnimation { properties: "x,y"; duration: 200; easing.type: Easing.OutSine }
+ NumberAnimation { property: "opacity"; to: 1.0 }
+ }
+
onSelectAll: root.plmodel.selectAll()
onSelectionUpdated: {
if (view.mode === "select") {
diff --git a/modules/gui/qt/widgets/qml/KeyNavigableListView.qml b/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
index 177f448f97..8da3eff120 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
@@ -58,6 +58,9 @@ NavigableFocusScope {
property alias section: view.section
property alias orientation: view.orientation
+ property alias add: view.add
+ property alias displaced: view.displaced
+
property int highlightMargin: VLCStyle.margin_large
property int scrollBarWidth: scroll_id.visible ? scroll_id.width : 0
More information about the vlc-commits
mailing list