~zsombi/ubuntu-ui-toolkit/listitemSelectModeBugs

« back to all changes in this revision

Viewing changes to examples/ubuntu-ui-toolkit-gallery/NewListItems.qml

  • Committer: Zsombor Egri
  • Date: 2015-11-16 06:35:05 UTC
  • mfrom: (1664.1.1 listitemSelectModeBugs)
  • Revision ID: zsombor.egri@canonical.com-20151116063505-cwn2qfks7qzk10g9
re-sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        // clip the action delegates while swiping left/right
35
35
        clip: true
36
36
 
37
 
       ListItemWithLabel {
 
37
        ListItemWithLabel {
38
38
            color: UbuntuColors.blue
39
 
            text: i18n.tr("Colored")
 
39
            title.text: i18n.tr("Colored")
40
40
        }
41
41
        ListItemWithLabel {
42
 
            text: i18n.tr("Highlight color")
 
42
            title.text: i18n.tr("Highlight color")
43
43
            highlightColor: UbuntuColors.orange
44
44
            // no highlight without clicked() or leading/trailing actions
45
45
        }
68
68
        }
69
69
 
70
70
        ListItemWithLabel {
71
 
            text: i18n.tr("Leading actions")
72
 
            leadingActions: exampleLeadingActions
73
 
        }
74
 
        ListItemWithLabel {
75
 
            text: i18n.tr("Trailing actions")
76
 
            trailingActions: exampleTrailingActions
77
 
        }
78
 
        ListItemWithLabel {
79
 
            text: i18n.tr("Leading and trailing actions")
80
 
            leadingActions: exampleLeadingActions
81
 
            trailingActions: exampleTrailingActions
82
 
        }
83
 
        ListItemWithLabel {
84
 
            text: i18n.tr("Custom action delegates")
 
71
            title.text: i18n.tr("Leading actions")
 
72
            leadingActions: exampleLeadingActions
 
73
        }
 
74
        ListItemWithLabel {
 
75
            title.text: i18n.tr("Trailing actions")
 
76
            trailingActions: exampleTrailingActions
 
77
        }
 
78
        ListItemWithLabel {
 
79
            title.text: i18n.tr("Leading and trailing actions")
 
80
            leadingActions: exampleLeadingActions
 
81
            trailingActions: exampleTrailingActions
 
82
        }
 
83
        ListItemWithLabel {
 
84
            title.text: i18n.tr("Custom action delegates")
85
85
            leadingActions: ListItemActions {
86
86
                actions: [
87
87
                    Action {
162
162
 
163
163
            model: [ i18n.tr("Basic"), i18n.tr("Colored divider"), i18n.tr("Immutable"), i18n.tr("No divider") ]
164
164
            delegate: ListItemWithLabel {
165
 
                text: modelData
 
165
                title.text: modelData
166
166
                color: dragging ? "lightblue" : "transparent"
167
167
                divider {
168
168
                    colorFrom: modelData == i18n.tr("Colored divider") ? UbuntuColors.red : Qt.rgba(0.0, 0.0, 0.0, 0.0)
207
207
            }
208
208
 
209
209
            delegate: ListItemWithLabel {
210
 
                text: modelData
 
210
                title.text: modelData
211
211
                color: dragMode ? "lightblue" : "lightgray"
212
212
                divider {
213
213
                    colorFrom: modelData == i18n.tr("Colored divider") ? UbuntuColors.red : Qt.rgba(0.0, 0.0, 0.0, 0.0)