From 3db2df0a33952223ef0e1a087329ada7f2b2d3ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Trond=20Kjern=C3=A5sen?= Date: Thu, 26 Aug 2010 17:00:50 +0200 Subject: Add a test for the QPen::brush() != Qt::NoBrush for a Qt::NoPen pen. --- tests/auto/qpen/tst_qpen.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/auto/qpen/tst_qpen.cpp b/tests/auto/qpen/tst_qpen.cpp index 149f462..6ca4e13 100644 --- a/tests/auto/qpen/tst_qpen.cpp +++ b/tests/auto/qpen/tst_qpen.cpp @@ -67,6 +67,7 @@ private slots: void constructor(); void constructor_data(); + void noPenNoBrush(); }; // Testing get/set functions @@ -213,6 +214,12 @@ 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" -- cgit v0.12