Mac: Fix QLineEdit shadow
The cursor is still rendered 1px too low, but probably needs to be fixed in QTextLayout. Change-Id: Ie56c7140898b941c8d896f503ce1934d0d681a4d Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
This commit is contained in:
parent
9410b307af
commit
8003fd6d5b
@ -2280,9 +2280,6 @@ int QMacStyle::pixelMetric(PixelMetric metric, const QStyleOption *opt, const QW
|
||||
// The combo box popup has no frame.
|
||||
if (qstyleoption_cast<const QStyleOptionComboBox *>(opt) != 0)
|
||||
ret = 0;
|
||||
// Frame of mac style line edits is two pixels on top and one on the bottom
|
||||
else if (qobject_cast<const QLineEdit *>(widget) != 0)
|
||||
ret = 2;
|
||||
else
|
||||
ret = 1;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user