summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qbrush.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-09-03 10:20:49 +0200
committerLars Knoll <lars.knoll@qt.io>2020-09-11 19:32:35 +0200
commitdefc8414fde0ea9f52fe554e00fe2f04947b7578 (patch)
tree63576c7c0d7edb7076b6cf24409311f9f91763c3 /src/gui/painting/qbrush.h
parent698761ea8a477d7c3544b604b105a9c1c76b8f80 (diff)
Cleanup QGradient
Tackle some cleanups scheduled for Qt 6. Change-Id: I46e6e49e3d74f49ce953a36c5611d635232d43b1 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/painting/qbrush.h')
-rw-r--r--src/gui/painting/qbrush.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/painting/qbrush.h b/src/gui/painting/qbrush.h
index 281789c838..3b7b949bde 100644
--- a/src/gui/painting/qbrush.h
+++ b/src/gui/painting/qbrush.h
@@ -400,7 +400,7 @@ public:
qreal x1, y1, x2, y2;
} linear;
struct {
- qreal cx, cy, fx, fy, cradius;
+ qreal cx, cy, fx, fy, cradius, fradius;
} radial;
struct {
qreal cx, cy, angle;
@@ -413,11 +413,12 @@ private:
friend class QConicalGradient;
friend class QBrush;
- Type m_type;
- Spread m_spread;
+ Type m_type = NoGradient;
+ Spread m_spread = PadSpread;
QGradientStops m_stops;
QGradientData m_data;
- void *dummy; // ### Qt 6: replace with actual content (CoordinateMode, InterpolationMode, ...)
+ CoordinateMode m_coordinateMode = LogicalMode;
+ InterpolationMode m_interpolationMode = ColorInterpolation;
};
inline void QGradient::setSpread(Spread aspread)