Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
b96588cc by Fatih Uzunoglu at 2024-04-30T08:54:58+00:00
qml: set `reuseItems` property declaratively in KeyNavigableListView
- - - - -
1 changed file:
- modules/gui/qt/widgets/qml/KeyNavigableListView.qml
Changes:
=====================================
modules/gui/qt/widgets/qml/KeyNavigableListView.qml
=====================================
@@ -83,6 +83,8 @@ ListView {
boundsBehavior: Flickable.StopAtBounds
+ reuseItems: true
+
section.property: ""
section.criteria: ViewSection.FullString
section.delegate: sectionHeading
@@ -91,13 +93,6 @@ ListView {
// Events
- Component.onCompleted: {
- if (typeof root.reuseItems === "boolean") {
- // Qt 5.15 feature, on by default here:
- root.reuseItems = true
- }
- }
-
// NOTE: We always want a valid 'currentIndex' by default.
onCountChanged: if (count && currentIndex === -1) currentIndex = 0
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/b96588ccc935e5a6cd9c2c7fd07d1beec7825f7e
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/b96588ccc935e5a6cd9c2c7fd07d1beec7825f7e
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits