diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-31 12:51:36 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-31 12:51:36 (GMT) |
commit | 9a2ad0cf5724e40f6e401f94904563d14a152f95 (patch) | |
tree | f436c27e8566b3f18a1a73baf6afdf2e2c23fa71 /tests | |
parent | b2d8bca28e1ea485c9ebbe02566cc099c33d8458 (diff) | |
parent | 670ef284a02e822fa244462e9e8126bc646dff5e (diff) | |
download | Qt-9a2ad0cf5724e40f6e401f94904563d14a152f95.zip Qt-9a2ad0cf5724e40f6e401f94904563d14a152f95.tar.gz Qt-9a2ad0cf5724e40f6e401f94904563d14a152f95.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
Fix compile error with QT_NO_NETWORKDISKCACHE in QtNetwork
Fix crash when using qDebug() on a QBrush with Qt::TexturePattern style.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qbrush/tst_qbrush.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/auto/qbrush/tst_qbrush.cpp b/tests/auto/qbrush/tst_qbrush.cpp index bc2bc60..cff45c2 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) @@ -390,5 +391,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" |