From 8003fd6d5b12d51bfeb4fd5cd1f5c1b303c19df6 Mon Sep 17 00:00:00 2001 From: Gabriel de Dietrich Date: Wed, 17 Oct 2012 18:53:01 +0200 Subject: [PATCH] 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 --- src/widgets/styles/qmacstyle_mac.mm | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/widgets/styles/qmacstyle_mac.mm b/src/widgets/styles/qmacstyle_mac.mm index 54b15e39a6..3110973740 100644 --- a/src/widgets/styles/qmacstyle_mac.mm +++ b/src/widgets/styles/qmacstyle_mac.mm @@ -2280,9 +2280,6 @@ int QMacStyle::pixelMetric(PixelMetric metric, const QStyleOption *opt, const QW // The combo box popup has no frame. if (qstyleoption_cast(opt) != 0) ret = 0; - // Frame of mac style line edits is two pixels on top and one on the bottom - else if (qobject_cast(widget) != 0) - ret = 2; else ret = 1; break;