Fix editable combobox style on Mac

Reviewed-by: Jens Bache-Wiig
(cherry picked from commit 459dc4a3bf0dc0ac54fc558379fdf551949dd1c6)

Change-Id: I744722d46ced0c2b6139bc232a819d0d802eed0d
Reviewed-on: http://codereview.qt.nokia.com/1633
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
This commit is contained in:
Jiang Jiang 2011-07-07 14:53:09 +02:00 committed by Qt by Nokia
parent 9e7a21291c
commit 3b19eab45e

View File

@ -1195,15 +1195,15 @@ QRect QMacStylePrivate::comboboxEditBounds(const QRect &outerBounds, const HIThe
QRect ret = outerBounds;
switch (bdi.kind){
case kThemeComboBox:
ret.adjust(5, 8, -21, -4);
ret.adjust(5, 8, -22, -4);
break;
case kThemeComboBoxSmall:
ret.adjust(4, 5, -18, 0);
ret.setHeight(16);
ret.adjust(4, 6, -20, 0);
ret.setHeight(14);
break;
case kThemeComboBoxMini:
ret.adjust(4, 5, -16, 0);
ret.setHeight(13);
ret.adjust(4, 5, -18, -1);
ret.setHeight(12);
break;
case kThemePopupButton:
ret.adjust(10, 3, -23, -3);