tests/auto/qgraphicspixmapitem/tst_qgraphicspixmapitem.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   163 void tst_QGraphicsPixmapItem::boundingRect_data()
   163 void tst_QGraphicsPixmapItem::boundingRect_data()
   164 {
   164 {
   165     QTest::addColumn<QPixmap>("pixmap");
   165     QTest::addColumn<QPixmap>("pixmap");
   166     QTest::addColumn<QRectF>("boundingRect");
   166     QTest::addColumn<QRectF>("boundingRect");
   167     QTest::newRow("null") << QPixmap() << QRectF();
   167     QTest::newRow("null") << QPixmap() << QRectF();
   168     QTest::newRow("10x10") << QPixmap(10, 10) << QRectF(-0.5, -0.5, 11, 11);
   168     QTest::newRow("10x10") << QPixmap(10, 10) << QRectF(0, 0, 10, 10);
   169 }
   169 }
   170 
   170 
   171 // public QRectF boundingRect() const
   171 // public QRectF boundingRect() const
   172 void tst_QGraphicsPixmapItem::boundingRect()
   172 void tst_QGraphicsPixmapItem::boundingRect()
   173 {
   173 {