diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-03-31 16:58:08 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-04-11 19:26:11 +0000 |
commit | b663020c9a60704dc53014522a3faa23892280a0 (patch) | |
tree | 80dd4f47910ce2313491d19167f3dfb94ea9d9e5 /src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc | |
parent | 1acb34a40ea0fbc0c0730cdc81dcfd46bdeb4ef7 (diff) |
Add RadioDelegate
RadioDelegate is an item delegate that is used in lists, and can be
checked and unchecked. It derives from QQuickItemDelegate and hence has
background press effects. The order of the indicator and text is
reversed (compared to RadioButton) to reflect what is most commonly
seen on mobile.
Change-Id: I143ee9a30cd8ce1d624354f4cb981c41dfddc2d2
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc')
-rw-r--r-- | src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc index 197e2529..103da5fe 100644 --- a/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc +++ b/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc @@ -338,6 +338,30 @@ \snippet RadioButton.qml indicator + \section1 Customizing RadioDelegate + + RadioDelegate consists of three visual items: \l {Control::background}{background}, + \l {Control::contentItem}{contentItem} and \l {AbstractButton::indicator}{indicator}. + + \section3 Background + + \image qtquickcontrols-radiodelegate-background.png + + \snippet RadioDelegate.qml background + + \section3 Content item + + \image qtquickcontrols-radiodelegate-contentItem.png + + \snippet RadioDelegate.qml contentItem + + \section3 Indicator + + \image qtquickcontrols-radiodelegate-indicator.png + + \snippet RadioDelegate.qml indicator + + \section1 Customizing RangeSlider RangeSlider consists of three visual items: @@ -539,7 +563,6 @@ \snippet Switch.qml indicator - \section1 Customizing TabBar TODO |