summaryrefslogtreecommitdiffstats
path: root/tests/auto/qbrush
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-01-19 12:29:10 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-01-19 12:32:40 (GMT)
commit1969f1f291807210f0a1b2fd3dbabb8110b9bb52 (patch)
tree5d1f9f59da38844fb6d8c2c4da23e0663cefc1ca /tests/auto/qbrush
parentb80ac6d798577286829154388ac86f4cf0845e19 (diff)
downloadQt-1969f1f291807210f0a1b2fd3dbabb8110b9bb52.zip
Qt-1969f1f291807210f0a1b2fd3dbabb8110b9bb52.tar.gz
Qt-1969f1f291807210f0a1b2fd3dbabb8110b9bb52.tar.bz2
Changed QBrush::operator== to also compare the brush transforms.
Updated documentation and autotest as well. Reviewed-by: Trond
Diffstat (limited to 'tests/auto/qbrush')
-rw-r--r--tests/auto/qbrush/tst_qbrush.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qbrush/tst_qbrush.cpp b/tests/auto/qbrush/tst_qbrush.cpp
index bc2bc60..628e859 100644
--- a/tests/auto/qbrush/tst_qbrush.cpp
+++ b/tests/auto/qbrush/tst_qbrush.cpp
@@ -108,6 +108,15 @@ void tst_QBrush::operator_eq_eq_data()
<< false;
QTest::newRow("rad vs con") << QBrush(QRadialGradient(0, 0, 0, 0, 0)) << QBrush(QConicalGradient(0, 0, 0)) << false;
+
+ QBrush b1(lg);
+ QBrush b2(lg);
+ b1.setTransform(QTransform().scale(2, 2));
+ QTest::newRow("lg with transform vs same lg") << b1 << b2 << false;
+
+ b2.setTransform(QTransform().scale(2, 2));
+ QTest::newRow("lg w/transform vs same lg w/same transform") << b1 << b2 << true;
+
}
void tst_QBrush::operator_eq_eq()