summaryrefslogtreecommitdiff
path: root/tests/auto/qpen/tst_qpen.cpp
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond.kjernasen@nokia.com>2010-08-27 11:13:16 +0200
committerTrond Kjernåsen <trond.kjernasen@nokia.com>2010-08-27 11:16:46 +0200
commitbdcfcc607c1a6744cf1b35eca0914fa96e70071c (patch)
treecb3422a1affb5acb3042fd075fb5ceef219c9941 /tests/auto/qpen/tst_qpen.cpp
parent000b1e7aeea80655d7293b511be5e135e26aff03 (diff)
downloadqt4-tools-bdcfcc607c1a6744cf1b35eca0914fa96e70071c.tar.gz
Apparently QPen::brush() can't return a NoBrush for a NoPen.
There are explicit tests in qdatastream for this. IMO it's wrong, wrong, wrong, but it's currently abused in the SVG module so we can't change it. Reviewed-by: Gunnar
Diffstat (limited to 'tests/auto/qpen/tst_qpen.cpp')
-rw-r--r--tests/auto/qpen/tst_qpen.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/auto/qpen/tst_qpen.cpp b/tests/auto/qpen/tst_qpen.cpp
index 6ca4e13107..b0c2cad734 100644
--- a/tests/auto/qpen/tst_qpen.cpp
+++ b/tests/auto/qpen/tst_qpen.cpp
@@ -67,7 +67,6 @@ private slots:
void constructor();
void constructor_data();
- void noPenNoBrush();
};
// Testing get/set functions
@@ -214,12 +213,5 @@ void tst_QPen::stream()
QCOMPARE(pen, cmp);
}
-void tst_QPen::noPenNoBrush()
-{
- QPen pen;
- pen.setStyle(Qt::NoPen);
- QVERIFY(pen.brush().style() == Qt::NoBrush);
-}
-
QTEST_APPLESS_MAIN(tst_QPen)
#include "tst_qpen.moc"