diff options
author | Marc Mutz <marc.mutz@qt.io> | 2021-11-23 15:26:07 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2021-11-27 17:22:57 +0100 |
commit | df663625afb8b8ed5ad54343471ea498a4a9680f (patch) | |
tree | 404f4394b5029b95bc1950beea5359842d2e339e /src | |
parent | e8531e4c1faf99c21c249274d540694dc2a3d3e6 (diff) |
QLayoutPolicy: un-export the class
The class is almost completely inline. Don't export it wholesale, only
export the few out-of-line members.
Also acts as a test-case for the new Q_GADGET_EXPORT feature.
Task-number: QTBUG-55458
Change-Id: I699a774614183960d7ac4e0afcdb57cfef76db15
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/util/qlayoutpolicy_p.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/util/qlayoutpolicy_p.h b/src/gui/util/qlayoutpolicy_p.h index 6457aeb653..556d19fa35 100644 --- a/src/gui/util/qlayoutpolicy_p.h +++ b/src/gui/util/qlayoutpolicy_p.h @@ -64,9 +64,9 @@ QT_BEGIN_NAMESPACE class QVariant; -class Q_GUI_EXPORT QLayoutPolicy +class QLayoutPolicy { - Q_GADGET + Q_GADGET_EXPORT(Q_GUI_EXPORT) Q_ENUMS(Policy) public: @@ -116,11 +116,11 @@ public: } Policy horizontalPolicy() const { return static_cast<Policy>(bits.horPolicy); } Policy verticalPolicy() const { return static_cast<Policy>(bits.verPolicy); } - ControlType controlType() const; + Q_GUI_EXPORT ControlType controlType() const; void setHorizontalPolicy(Policy d) { bits.horPolicy = d; } void setVerticalPolicy(Policy d) { bits.verPolicy = d; } - void setControlType(ControlType type); + Q_GUI_EXPORT void setControlType(ControlType type); Qt::Orientations expandingDirections() const { Qt::Orientations result; @@ -144,7 +144,7 @@ public: void setHorizontalStretch(int stretchFactor) { bits.horStretch = static_cast<quint32>(qBound(0, stretchFactor, 255)); } void setVerticalStretch(int stretchFactor) { bits.verStretch = static_cast<quint32>(qBound(0, stretchFactor, 255)); } - void transpose(); + inline void transpose(); private: |