diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-11-11 10:24:46 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2016-11-11 10:24:46 +0000 |
commit | 7b33addb8d8d1c07dda9a9f39d86f7bda812da82 (patch) | |
tree | 01888baa4cf5c8737d3456466deff895ea97bea7 /src/imports/controls/ComboBox.qml | |
parent | f5467114b789dcb33ad88105fe84bddf42436d8c (diff) | |
parent | 6c88fe58a6037d252f40bf00aa5052b0f724a862 (diff) |
Merge "Merge remote-tracking branch 'origin/5.8' into dev" into refs/staging/dev
Diffstat (limited to 'src/imports/controls/ComboBox.qml')
-rw-r--r-- | src/imports/controls/ComboBox.qml | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/imports/controls/ComboBox.qml b/src/imports/controls/ComboBox.qml index c400441d..4519838c 100644 --- a/src/imports/controls/ComboBox.qml +++ b/src/imports/controls/ComboBox.qml @@ -53,7 +53,6 @@ T.ComboBox { leftPadding: padding + (!control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing) rightPadding: padding + (control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing) - //! [delegate] delegate: ItemDelegate { width: parent.width text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData @@ -61,9 +60,7 @@ T.ComboBox { highlighted: control.highlightedIndex == index hoverEnabled: control.hoverEnabled } - //! [delegate] - //! [indicator] indicator: Image { x: control.mirrored ? control.padding : control.width - width - control.padding 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: 12 rightPadding: 12 @@ -89,9 +84,7 @@ T.ComboBox { elide: Text.ElideRight opacity: enabled ? 1 : 0.3 } - //! [contentItem] - //! [background] background: Rectangle { implicitWidth: 120 implicitHeight: 40 @@ -102,9 +95,7 @@ T.ComboBox { border.width: control.visualFocus ? 2 : 0 visible: !control.flat || control.pressed } - //! [background] - //! [popup] popup: T.Popup { y: control.height - (control.visualFocus ? 0 : 1) width: control.width @@ -133,5 +124,4 @@ T.ComboBox { background: Rectangle { } } - //! [popup] } |