summaryrefslogtreecommitdiffstats
path: root/tests/auto/qbrush/tst_qbrush.cpp
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2010-04-12 06:31:55 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2010-04-12 06:31:55 (GMT)
commitf710d57af1cc03af143573135390e6c68eecbfe8 (patch)
tree2b4f317509b101e2aa08d69225818054310e4d09 /tests/auto/qbrush/tst_qbrush.cpp
parentd22c8c60ffd986cc46d1f1cab878d60b03b5d4ea (diff)
parentf64ad3687c428644139690d565fe555ed2199aea (diff)
downloadQt-f710d57af1cc03af143573135390e6c68eecbfe8.zip
Qt-f710d57af1cc03af143573135390e6c68eecbfe8.tar.gz
Qt-f710d57af1cc03af143573135390e6c68eecbfe8.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7
Diffstat (limited to 'tests/auto/qbrush/tst_qbrush.cpp')
-rw-r--r--tests/auto/qbrush/tst_qbrush.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/auto/qbrush/tst_qbrush.cpp b/tests/auto/qbrush/tst_qbrush.cpp
index 628e859..7e94f37 100644
--- a/tests/auto/qbrush/tst_qbrush.cpp
+++ b/tests/auto/qbrush/tst_qbrush.cpp
@@ -75,9 +75,10 @@ private slots:
void gradientStops();
void textures();
-
+
void nullBrush();
void isOpaque();
+ void debug();
};
Q_DECLARE_METATYPE(QBrush)
@@ -399,5 +400,15 @@ void tst_QBrush::isOpaque()
QVERIFY(!brush.isOpaque());
}
+void tst_QBrush::debug()
+{
+ QPixmap pixmap_source(10, 10);
+ fill(&pixmap_source);
+ QBrush pixmap_brush;
+ pixmap_brush.setTexture(pixmap_source);
+ QCOMPARE(pixmap_brush.style(), Qt::TexturePattern);
+ qDebug() << pixmap_brush; // don't crash
+}
+
QTEST_MAIN(tst_QBrush)
#include "tst_qbrush.moc"