~zsombi/ubuntu-ui-toolkit/35-options-panel-swipe

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/OptionSelectorDelegate.qml

  • Committer: Zsombor Egri
  • Date: 2014-11-19 15:16:10 UTC
  • mfrom: (1214.92.17 34-snap-animator)
  • Revision ID: zsombor.egri@canonical.com-20141119151610-9k1brcg53bwbz7jc
prereq sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    \ingroup ubuntu-components
21
21
    \brief OptionSelector delegate which can display text, subtext and an image from a custom model.
22
22
 
23
 
    \b{This component is under heavy development.}
24
 
 
25
23
    Examples:
26
24
    \qml
27
25
        import Ubuntu.Components 1.1
53
51
    __height: units.gu(5)
54
52
 
55
53
    /*!
56
 
      \preliminary
57
54
      Subtext which appears below the main text.
58
55
     */
59
56
    property string subText
72
69
                   }
73
70
 
74
71
    /*!
75
 
      \preliminary
76
72
      Constrains the size of the image to nothing greater than that of the delegate. Changes fillMode to Image.PreserveAspectFit.
77
73
     */
78
74
    property bool constrainImage: false
79
75
 
80
76
    /*!
81
 
      \preliminary
82
77
      Whether or not left image is coloured by our theme.
83
78
     */
84
79
    property bool colourImage: listView.container.colourImage
85
80
 
86
81
    /*!
87
 
      \preliminary
88
82
      Colour of left image.
89
83
     */
90
84
    property color assetColour: listView.container.themeColour
91
85
 
92
86
    /*!
93
 
      \preliminary
94
87
      OptionSelector's ListView.
95
88
     */
96
89
    readonly property ListView listView: ListView.view
97
90
 
98
91
    /*!
99
 
      \preliminary
100
92
      Colourising fragment shader.
101
93
     */
102
94
    readonly property string fragColourShader: