aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/universal/CheckDelegate.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-06-08 11:13:43 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-06-08 10:23:32 +0000
commit00dfd9e5cc99371152be44e48ce88f3a69757022 (patch)
tree9fda9329569a7b243c6f51726ec1be091a98455d /src/imports/controls/universal/CheckDelegate.qml
parent43dd46ac69e469694deb82e020b541a372b15fa6 (diff)
Universal: remove qdoc markers
The original plan was to include the default implementation (of all styles, if we could make the snippets collapsiple) in the customization docs. Since the default implementations tend to include internal types, in the end we went the other way and wrote dedicated example snippets for the customization docs. Therefore these markers no longer server a purpose, but just add unnecessary extra bytes for the QML parser to read. Change-Id: I5740192b0a3e80614a795d32dabeb753f86bbd68 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/universal/CheckDelegate.qml')
-rw-r--r--src/imports/controls/universal/CheckDelegate.qml6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/imports/controls/universal/CheckDelegate.qml b/src/imports/controls/universal/CheckDelegate.qml
index 9441c7b0..c0ca272e 100644
--- a/src/imports/controls/universal/CheckDelegate.qml
+++ b/src/imports/controls/universal/CheckDelegate.qml
@@ -54,15 +54,12 @@ T.CheckDelegate {
topPadding: padding - 1
bottomPadding: padding + 1
- //! [indicator]
indicator: CheckIndicator {
x: text ? (control.mirrored ? control.leftPadding : control.width - width - control.rightPadding) : control.leftPadding + (control.availableWidth - width) / 2
y: control.topPadding + (control.availableHeight - height) / 2
control: control
}
- //! [indicator]
- //! [contentItem]
contentItem: Text {
leftPadding: !control.mirrored ? 0 : control.indicator.width + control.spacing
rightPadding: control.mirrored ? 0 : control.indicator.width + control.spacing
@@ -77,9 +74,7 @@ T.CheckDelegate {
opacity: enabled ? 1.0 : 0.2
color: control.Universal.foreground
}
- //! [contentItem]
- //! [background]
background: Rectangle {
visible: control.down || control.highlighted || control.visualFocus
color: control.down ? control.Universal.listMediumColor : control.Universal.altMediumLowColor
@@ -92,5 +87,4 @@ T.CheckDelegate {
}
}
- //! [background]
}