Commit 0f0ed6ca authored by Nate Graham's avatar Nate Graham
Browse files

Put Scrollview list/grid contents in contentItem

This is a small memory optimization we can make with scrollviews whose
only contents are a ListView or a GridView
parent 536fc3b4
......@@ -187,7 +187,7 @@ FocusScope {
anchors.fill: parent
GridView {
contentItem: GridView {
id: contentDirectoryView
activeFocusOnTab: true
......
......@@ -148,7 +148,7 @@ FocusScope {
ScrollView {
anchors.fill: parent
ListView {
contentItem: ListView {
id: contentDirectoryView
Accessible.role: Accessible.List
......
......@@ -177,7 +177,7 @@ Kirigami.Page {
id: desktopListView
ScrollView {
property alias list: playListView
ListView {
contentItem: ListView {
id: playListView
focus: true
......@@ -420,7 +420,7 @@ Kirigami.Page {
id: mobileListView
ScrollView {
property alias list: playListView
ListView {
contentItem: ListView {
id: playListView
anchors.fill: parent
reuseItems: true
......
......@@ -275,7 +275,7 @@ ColumnLayout {
scrollview.background.visible = true;
}
ListView {
contentItem: ListView {
id: pathList
clip: true
......
......@@ -21,7 +21,7 @@ ScrollView {
signal pausePlayback()
signal displayError(var errorText)
ListView {
contentItem: ListView {
id: playListView
readonly property int nextIndex: {
......
......@@ -34,7 +34,7 @@ FocusScope {
anchors.fill: parent
ListView {
contentItem: ListView {
id: viewModeView
Accessible.role: Accessible.List
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment