summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-22 04:30:45 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-22 04:30:45 +0200
commit7eddc26d24defb3444e21adfbd43f8e568be576d (patch)
tree3304b432ba49ef52df8f9de993a7ea4694dc0fff /components
parent26e02b898d3f4e63c942d2742cb920aec9e6489c (diff)
downloadkube-7eddc26d24defb3444e21adfbd43f8e568be576d.tar.gz
kube-7eddc26d24defb3444e21adfbd43f8e568be576d.zip
ModelIndexRetriever to abuse Repeater less publicly
Simliar to Retriever, but we'd have to alias all properties/roles automatically somehow.
Diffstat (limited to 'components')
-rw-r--r--components/kube/contents/ui/LogView.qml19
1 files changed, 6 insertions, 13 deletions
diff --git a/components/kube/contents/ui/LogView.qml b/components/kube/contents/ui/LogView.qml
index 0d01ed6f..918597df 100644
--- a/components/kube/contents/ui/LogView.qml
+++ b/components/kube/contents/ui/LogView.qml
@@ -122,24 +122,17 @@ Controls.SplitView {
122 property date timestamp 122 property date timestamp
123 property string message 123 property string message
124 property string resourceId: "" 124 property string resourceId: ""
125 property string accountId: "" 125 property string accountId: retriever.currentData.accountId
126 property string accountName: "" 126 property string accountName: retriever.currentData.name
127 color: Kube.Colors.backgroundColor 127 color: Kube.Colors.backgroundColor
128 Repeater { 128
129 Kube.ModelIndexRetriever {
130 id: retriever
129 model: Kube.AccountsModel { 131 model: Kube.AccountsModel {
130 id: accountsModel
131 resourceId: details.resourceId 132 resourceId: details.resourceId
132 } 133 }
133 Item {
134 property string account: model.accountId
135 property string accountName: model.name
136 onAccountChanged: {
137 details.accountId = account
138 details.accountName = name
139 }
140 visible: false
141 }
142 } 134 }
135
143 Rectangle { 136 Rectangle {
144 anchors { 137 anchors {
145 fill: parent 138 fill: parent