~ci-train-bot/ubuntu-settings-components/ubuntu-settings-components-ubuntu-zesty-2106

« back to all changes in this revision

Viewing changes to examples/OtherComponents.qml

  • Committer: Bileto Bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2016-11-11 16:53:12 UTC
  • mfrom: (146.6.6 radio-menuitem)
  • Revision ID: ci-train-bot@canonical.com-20161111165312-wereh72v48swb6fz
RadioMenu: add menu item for creating radio items

In this case the component has a quite different look in pointer mode compared to touch mode, since
the bullet has to be placed in the middle of the leading padding space when using pointer.
Instead in touch-mode it behaves like any other icon or action item.

Approved by: Lukáš Tinkl, Unity8 CI Bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
244
244
                }
245
245
            }
246
246
 
 
247
            SeparatorMenu {}
 
248
 
 
249
            RadioMenu {
 
250
                id: applesRadio
 
251
                text: i18n.tr("Apples")
 
252
                checked: true
 
253
                onTriggered: orangesRadio.checked = !checked
 
254
            }
 
255
 
 
256
            RadioMenu {
 
257
                id: orangesRadio
 
258
                text: i18n.tr("Oranges")
 
259
                onTriggered: applesRadio.checked = !checked
 
260
            }
 
261
 
 
262
            SeparatorMenu {}
 
263
 
247
264
            GroupedMessageMenu {
248
265
                text: "Group Message"
249
266
                count: "4100"