import QtQuick 2.4
import Ubuntu.Components 1.3
import Ubuntu.Components.ListItems 1.3 as Lol
Column {
width: 800
height: 600
Repeater {
model: 5000
ListItem {
height: layout.height + divider.height
ListItemLayout {
id: layout
Item { SlotsLayout.position: SlotsLayout.Leading; width: units.gu(2) }
Item { SlotsLayout.position: SlotsLayout.Trailing; width: units.gu(2) }
Item { SlotsLayout.position: SlotsLayout.Trailing; width: units.gu(2) }
title.text: "test"
subtitle.text: "label"
}
}
}
}
import QtQuick 2.4
import Ubuntu.Components 1.3
import Ubuntu.Components.ListItems 1.3 as Lol
Column {
width: 800
height: 600
Repeater {
model: 5000
Item {
implicitHeight: units.gu(7)
anchors.left: parent.left
anchors.right: parent.right
ListItemLayout {
id: layout
anchors.top: parent.top
Item { SlotsLayout.position: SlotsLayout.Leading; width: units.gu(2) }
Item { SlotsLayout.position: SlotsLayout.Trailing; width: units.gu(2) }
Item { SlotsLayout.position: SlotsLayout.Trailing; width: units.gu(2) }
title.text: "test"
subtitle.text: "label"
}
Lol.ThinDivider {
anchors.top: layout.bottom
}
}
}
}
tst_performance: PASS : tst_Performance::benchmark_GridOfComponents(with listitem)
tst_performance: RESULT : tst_Performance::benchmark_GridOfComponents():"with listitem":
tst_performance: 2,068 msecs per iteration (total: 2,068, iterations: 1)
tst_performance: PASS : tst_Performance::benchmark_GridOfComponents(with Item + ThinDivider)
tst_performance: RESULT : tst_Performance::benchmark_GridOfComponents():"with Item + ThinDivider":
tst_performance: 2,654 msecs per iteration (total: 2,654, iterations: 1)