aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/ComboBox.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-11-01 15:07:51 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2016-11-01 20:19:12 +0000
commit07ab335947b4a5cadb2fd1e440ca7db38b82ba1b (patch)
tree69d2d8ad351caa978c86c6bc1c9aedbd8425c584 /src/imports/controls/ComboBox.qml
parent6f10ef6e167f4af68439f473842da3b5ea87e4a4 (diff)
Get rid of the remaining qdoc markers in the Default style
Change-Id: Id90911cbac46d2d68284abca08dc7165ace71113 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/ComboBox.qml')
-rw-r--r--src/imports/controls/ComboBox.qml10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/imports/controls/ComboBox.qml b/src/imports/controls/ComboBox.qml
index 791b5da6..31f2e5d9 100644
--- a/src/imports/controls/ComboBox.qml
+++ b/src/imports/controls/ComboBox.qml
@@ -54,16 +54,13 @@ T.ComboBox {
leftPadding: padding + 6
rightPadding: padding + 6
- //! [delegate]
delegate: ItemDelegate {
width: control.popup.width
text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData
font.weight: control.currentIndex === index ? Font.DemiBold : Font.Normal
highlighted: control.highlightedIndex == index
}
- //! [delegate]
- //! [indicator]
indicator: Image {
x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
y: control.topPadding + (control.availableHeight - height) / 2
@@ -72,9 +69,7 @@ T.ComboBox {
sourceSize.height: height
opacity: enabled ? 1 : 0.3
}
- //! [indicator]
- //! [contentItem]
contentItem: Text {
leftPadding: control.mirrored && control.indicator ? control.indicator.width + control.spacing : 0
rightPadding: !control.mirrored && control.indicator ? control.indicator.width + control.spacing : 0
@@ -87,9 +82,7 @@ T.ComboBox {
elide: Text.ElideRight
opacity: enabled ? 1 : 0.3
}
- //! [contentItem]
- //! [background]
background: Rectangle {
implicitWidth: 120
implicitHeight: 40
@@ -99,9 +92,7 @@ T.ComboBox {
border.color: "#0066ff"
border.width: control.visualFocus ? 2 : 0
}
- //! [background]
- //! [popup]
popup: T.Popup {
y: control.height - (control.visualFocus ? 0 : 1)
width: control.width
@@ -132,5 +123,4 @@ T.ComboBox {
background: Rectangle { }
}
- //! [popup]
}