summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2018-07-02 10:16:54 +0200
committerEirik Aavitsland <eirik.aavitsland@qt.io>2018-07-24 16:45:53 +0000
commit1ed0b2170de0ad6f3c40a6105d05e87e3c26ad35 (patch)
treed91054263270f108aa2e12e5c86657cfc42f84f2 /tests/auto/gui
parentbafa5a14dde4415b13de3f3d44af6333538deff5 (diff)
Give the QGradient presets ObjectMode coordinate mode by default
ObjectBoundingMode has inconsistent behavior and is deprecated in favor of ObjectMode. Change-Id: I748f6283f3db5869bb9a67c08bf5f16abc6f95b0 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/gui')
-rw-r--r--tests/auto/gui/painting/qbrush/tst_qbrush.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/gui/painting/qbrush/tst_qbrush.cpp b/tests/auto/gui/painting/qbrush/tst_qbrush.cpp
index e4b43f2912..cd3eaa1478 100644
--- a/tests/auto/gui/painting/qbrush/tst_qbrush.cpp
+++ b/tests/auto/gui/painting/qbrush/tst_qbrush.cpp
@@ -331,7 +331,7 @@ void tst_QBrush::gradientPresets()
{
QGradient gradient(QGradient::WarmFlame);
QCOMPARE(gradient.type(), QGradient::LinearGradient);
- QCOMPARE(gradient.coordinateMode(), QGradient::ObjectBoundingMode);
+ QCOMPARE(gradient.coordinateMode(), QGradient::ObjectMode);
QLinearGradient *lg = static_cast<QLinearGradient *>(&gradient);
QCOMPARE(lg->start(), QPointF(0, 1));