summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-04-05 00:00:15 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-08 22:06:38 +0200
commit22afdaa2dadc9ef610cbb9c69755ca589fbf907b (patch)
tree3a20e96d6ee8d20dc816a1c676932698accfec93 /tests/auto
parent9f924338a8c003c01864a44569ed2fb4cbba7d2d (diff)
QPageSize: provide op!=
For consistency. Change-Id: I4375a6f8c2514479a7479c735d397bf8a9876db1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: John Layt <jlayt@kde.org>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/gui/painting/qpagesize/tst_qpagesize.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/gui/painting/qpagesize/tst_qpagesize.cpp b/tests/auto/gui/painting/qpagesize/tst_qpagesize.cpp
index 968c5ff617..c54f2350e5 100644
--- a/tests/auto/gui/painting/qpagesize/tst_qpagesize.cpp
+++ b/tests/auto/gui/painting/qpagesize/tst_qpagesize.cpp
@@ -137,10 +137,13 @@ void tst_QPageSize::basics()
// Comparisons
QCOMPARE((a4 == folio), false);
+ QCOMPARE((a4 != folio), true);
QCOMPARE((a4.isEquivalentTo(folio)), false);
QCOMPARE((a4 == a4b), true);
+ QCOMPARE((a4 != a4b), false);
QCOMPARE((a4.isEquivalentTo(a4b)), true);
QCOMPARE((folio == folio2), false); // Name different
+ QCOMPARE((folio != folio2), true); // Name different
QCOMPARE((folio.isEquivalentTo(folio2)), true);
// Simple QSize in Millimeters