diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-11-16 14:19:25 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-11-16 16:43:29 +0000 |
commit | 170869fe1457fc68e96d46c9ff804071f86bd029 (patch) | |
tree | 41b4844184f62295a82d55f93f3fc4cc51e7f9af /src/imports/controls/material/ComboBox.qml | |
parent | 94d98bdb6326e784b8397044d50226daaefd6cce (diff) |
ComboBox: add more padding to the indicators
For the upcoming editable comboboxes, only the area covered by the indicator
acts as a pressable button. The rest is editor area, which gains focus
on press, but doesn't trigger the popup. The button must be large enough
to be usable on touch.
- Default: the width has been increased from 28 to 40
- Material: the width has been increased from 24 to 40
- Universal: the width is already 32 (which matches with SpinBox)
Task-number: QTBUG-53876
Change-Id: I2312e92947826b03fa28da2e9e9d844325fc7896
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/material/ComboBox.qml')
-rw-r--r-- | src/imports/controls/material/ComboBox.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/material/ComboBox.qml b/src/imports/controls/material/ComboBox.qml index fa287ac1..814f8ae7 100644 --- a/src/imports/controls/material/ComboBox.qml +++ b/src/imports/controls/material/ComboBox.qml @@ -75,8 +75,8 @@ T.ComboBox { contentItem: Text { padding: 6 - leftPadding: 12 - rightPadding: 12 + leftPadding: control.mirrored ? 0 : 12 + rightPadding: control.mirrored ? 12 : 0 text: control.displayText font: control.font |