summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-05-26 19:44:03 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-05-27 20:26:11 +0000
commit6a0995525d306a1fa224adcbcb9f0ae1fc7d01bd (patch)
tree6d7b2fbba56523a246998aedadd1c58392d11427 /src
parente7d12b876ab7d80b0eb983d6d5c90f64bfafed02 (diff)
macOS: Fix use of deprecated NSOffState
Pick-to: 5.15 Change-Id: Ic799c52350f99a14f57efa9907db772d19264ca2 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/styles/mac/qmacstyle_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/styles/mac/qmacstyle_mac.mm b/src/plugins/styles/mac/qmacstyle_mac.mm
index 871f4b8fb0..58061b1ae4 100644
--- a/src/plugins/styles/mac/qmacstyle_mac.mm
+++ b/src/plugins/styles/mac/qmacstyle_mac.mm
@@ -3969,7 +3969,7 @@ void QMacStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPainter
pbCell = static_cast<NSPopUpButtonCell *>(pb.cell);
oldPosition = pbCell.arrowPosition;
pbCell.arrowPosition = NSPopUpNoArrow;
- if (pb.state == NSOffState) {
+ if (pb.state == NSControlStateValueOff) {
// NSPopUpButton in this state is smaller.
rAdjusted.origin.x -= 3;
rAdjusted.size.width += 6;