summaryrefslogtreecommitdiffstats
path: root/src/plugins/styles/mac/qmacstyle_mac_p_p.h
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@qt.io>2018-03-13 18:04:30 -0700
committerGabriel de Dietrich <gabriel.dedietrich@qt.io>2018-03-22 21:23:59 +0000
commit3691c411159ff4d7cf7601dbb87dbf43cc8d46d4 (patch)
tree05471d14be0bb3c57d9fe5f9edf317090237bb13 /src/plugins/styles/mac/qmacstyle_mac_p_p.h
parent14157a1a3e1d934e4892f469abc4e2cdf4e65f52 (diff)
QMacStyle: Make CocoaControl a full type
And one small code clean-up. Change-Id: I57c71ce2e18c95529ee45ba4fdfc68e21209e384 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/styles/mac/qmacstyle_mac_p_p.h')
-rw-r--r--src/plugins/styles/mac/qmacstyle_mac_p_p.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/plugins/styles/mac/qmacstyle_mac_p_p.h b/src/plugins/styles/mac/qmacstyle_mac_p_p.h
index 00dc8a9b53..1c4986dd06 100644
--- a/src/plugins/styles/mac/qmacstyle_mac_p_p.h
+++ b/src/plugins/styles/mac/qmacstyle_mac_p_p.h
@@ -206,7 +206,17 @@ public:
TextField
};
- typedef QPair<CocoaControlType, QStyleHelper::WidgetSizePolicy> CocoaControl;
+
+ struct CocoaControl {
+ CocoaControl();
+ CocoaControl(CocoaControlType t, QStyleHelper::WidgetSizePolicy s);
+
+ CocoaControlType type;
+ QStyleHelper::WidgetSizePolicy size;
+
+ bool operator==(const CocoaControl &other) const;
+ };
+
typedef void (^DrawRectBlock)(CGContextRef, const CGRect &);