Mac: Fix QLineEdit shadow
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>
Wed, 17 Oct 2012 16:53:01 +0000 (18:53 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 17 Oct 2012 22:14:59 +0000 (00:14 +0200)
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>
src/widgets/styles/qmacstyle_mac.mm

index 54b15e3..3110973 100644 (file)
@@ -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;