summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-06 05:59:55 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-09 08:20:06 (GMT)
commit8437faaadab1d7bf8861e1d6575f4e1bff04b005 (patch)
tree5f89954d223d899bd8c86c974ff43739a3785bc7 /tests
parent68409c24211b4639832ce86113c33a247bb68950 (diff)
downloadQt-8437faaadab1d7bf8861e1d6575f4e1bff04b005.zip
Qt-8437faaadab1d7bf8861e1d6575f4e1bff04b005.tar.gz
Qt-8437faaadab1d7bf8861e1d6575f4e1bff04b005.tar.bz2
Crash on bug QTBUG-5493
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qpainter/tst_qpainter.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qpainter/tst_qpainter.cpp b/tests/auto/qpainter/tst_qpainter.cpp
index 4d2c626..02c73c0 100644
--- a/tests/auto/qpainter/tst_qpainter.cpp
+++ b/tests/auto/qpainter/tst_qpainter.cpp
@@ -101,6 +101,8 @@ private slots:
void saveAndRestore_data();
void saveAndRestore();
+ void drawBorderPixmap();
+
void drawLine_data();
void drawLine();
void drawLine_clipped();
@@ -973,6 +975,18 @@ void tst_QPainter::initFrom()
delete widget;
}
+void tst_QPainter::drawBorderPixmap()
+{
+ QPixmap src(79,79);
+ src.fill(Qt::transparent);
+
+ QImage pm(200,200,QImage::Format_RGB32);
+ QPainter p(&pm);
+ p.setTransform(QTransform(-1,0,0,-1,173.5,153.5));
+ qDrawBorderPixmap(&p, QRect(0,0,75,105), QMargins(39,39,39,39), src, QRect(0,0,79,79), QMargins(39,39,39,39),
+ QTileRules(Qt::StretchTile,Qt::StretchTile), 0);
+}
+
void tst_QPainter::drawLine_data()
{
QTest::addColumn<QLine>("line");