aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2020-09-30 16:15:26 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2020-09-30 17:20:27 +0200
commit0e8108319204324ecf31449e763df27f10afcc79 (patch)
tree40ee52845618b7db769cdd7aaf510d0c94a9b556 /src
parentcd120976218f9a62014b5e7571250e3d4b6c6fa1 (diff)
macOS: don't set the nine-patch margin exactly on the button width
There is a subtle shadow line at the exact button width, which becomes visible for wide comboboxes. So move the margin one pixel to the left so that we don't scale the image on top of the line. Change-Id: I8780874fdd39178e7cf2fde24117589f222ea324 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/imports/nativestyle/qstyle/mac/qquickmacstyle_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/nativestyle/qstyle/mac/qquickmacstyle_mac.mm b/src/imports/nativestyle/qstyle/mac/qquickmacstyle_mac.mm
index 2673e706..9575f888 100644
--- a/src/imports/nativestyle/qstyle/mac/qquickmacstyle_mac.mm
+++ b/src/imports/nativestyle/qstyle/mac/qquickmacstyle_mac.mm
@@ -6116,7 +6116,7 @@ QMargins QMacStyle::ninePatchMargins(QStyle::ComplexControl cc, const QStyleOpti
switch (cc) {
case CC_ComboBox: {
const QRect arrow = subControlRect(CC_ComboBox, opt, SC_ComboBoxArrow);
- margins = QMargins(10, 0, arrow.width(), -1);
+ margins = QMargins(10, 0, arrow.width() + 1, -1);
break; }
default:
margins = QCommonStyle::ninePatchMargins(cc, opt, imageSize);