~belohoub/owncloud-sync/UBsync

« back to all changes in this revision

Viewing changes to UBsync-ui/ui/TargetsPage.qml

  • Committer: Jan Belohoubek
  • Date: 2021-11-16 19:11:13 UTC
  • Revision ID: belohoub@fel.zcu.cz-20211116191113-eliu5vbzaqoba5z2
minor fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
            anchors{left:parent.left; right:parent.right}
171
171
 
172
172
            onClicked: {
173
 
                apl.addPageToNextColumn(targetsPage, Qt.resolvedUrl("EditTarget.qml"), {targetID: targetListModel.get(index).targetID})
 
173
                apl.addPageToNextColumn(targetsPage, Qt.resolvedUrl("EditTarget.qml"), {targetID: targetID})
174
174
            }
175
175
 
176
176
            Column {
186
186
 
187
187
                Rectangle {
188
188
                    id: targetIcon
189
 
                    color: targetListModel.get(index).color
 
189
                    color: color
190
190
                    width: units.gu(9)
191
191
                    height: width
192
192
                    border.width: 0
198
198
 
199
199
                Text {
200
200
                    id: targetIconText
201
 
                    text: targetListModel.get(index).targetName.charAt(0).toUpperCase()
 
201
                    text: targetName.charAt(0).toUpperCase()
202
202
                    color: "white"
203
203
                    font.pixelSize: units.gu(6)
204
204
                    anchors {
208
208
 
209
209
                Text {
210
210
                    id: targetName
211
 
                    text: targetListModel.get(index).targetName
 
211
                    text: targetName
212
212
                    height: units.gu(6)
213
213
                    font.pixelSize: units.gu(3)
214
214
                    anchors.leftMargin: units.gu(2)
219
219
 
220
220
                Text {
221
221
                    id: targetID
222
 
                    text: targetListModel.get(index).targetID
 
222
                    text: targetID
223
223
                    font.pixelSize: units.gu(2)
224
224
                    anchors.leftMargin: units.gu(2)
225
225
                    anchors {
238
238
                        iconName: "delete"
239
239
                        text: ""
240
240
                        onTriggered: {
241
 
                            targetsPage.removeTarget(targetListModel.get(index).targetID)
 
241
                            targetsPage.removeTarget(targetID)
242
242
                        }
243
243
                    }
244
244
                ]
250
250
                        iconName: "edit"
251
251
                        text: ""
252
252
                        onTriggered: {
253
 
                            apl.addPageToNextColumn(targetsPage, Qt.resolvedUrl("EditTarget.qml"), {targetID: targetListModel.get(index).targetID})
 
253
                            apl.addPageToNextColumn(targetsPage, Qt.resolvedUrl("EditTarget.qml"), {targetID: targetID})
254
254
                        }
255
255
                    }
256
256
                ]