parent
60de5a129a
commit
6b61164808
1 changed files with 6 additions and 1 deletions
|
|
@ -81,7 +81,10 @@ Item {
|
||||||
id: view
|
id: view
|
||||||
|
|
||||||
readonly property int currentIndex: root.state.currentTab
|
readonly property int currentIndex: root.state.currentTab
|
||||||
readonly property Item currentItem: row.children[currentIndex]
|
readonly property Item currentItem: {
|
||||||
|
repeater.count; // Trigger update on count change
|
||||||
|
return repeater.itemAt(currentIndex);
|
||||||
|
}
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
|
@ -119,6 +122,8 @@ Item {
|
||||||
id: row
|
id: row
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
|
id: repeater
|
||||||
|
|
||||||
model: ScriptModel {
|
model: ScriptModel {
|
||||||
values: root.dashboardTabs
|
values: root.dashboardTabs
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue