[vlc-devel] [PATCH 10/28] qml: add item animations to playlist listview
Fatih Uzunoglu
fuzun54 at outlook.com
Tue Jul 21 19:28:40 CEST 2020
---
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
--
2.25.1
More information about the vlc-devel
mailing list