summaryrefslogtreecommitdiffstats
path: root/tests/auto/qpen
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond.kjernasen@nokia.com>2010-08-26 15:00:50 (GMT)
committerTrond Kjernåsen <trond.kjernasen@nokia.com>2010-08-26 15:03:29 (GMT)
commit3db2df0a33952223ef0e1a087329ada7f2b2d3ea (patch)
treef01a57f09193e23c7f71bd37a6e6fdd25fadfde0 /tests/auto/qpen
parent92a6e159518cb8c54aa9ad45cd0c70a1c6a8b50c (diff)
downloadQt-3db2df0a33952223ef0e1a087329ada7f2b2d3ea.zip
Qt-3db2df0a33952223ef0e1a087329ada7f2b2d3ea.tar.gz
Qt-3db2df0a33952223ef0e1a087329ada7f2b2d3ea.tar.bz2
Add a test for the QPen::brush() != Qt::NoBrush for a Qt::NoPen pen.
Diffstat (limited to 'tests/auto/qpen')
-rw-r--r--tests/auto/qpen/tst_qpen.cpp7
1 files changed, 7 insertions, 0 deletions
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"