tests/auto/qtransform/tst_qtransform.cpp
changeset 33 3e2da88830cd
parent 19 fcece45ef507
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    83     void controlPointRect();
    83     void controlPointRect();
    84     void inverted_data();
    84     void inverted_data();
    85     void inverted();
    85     void inverted();
    86     void projectivePathMapping();
    86     void projectivePathMapping();
    87     void mapInt();
    87     void mapInt();
       
    88     void mapPathWithPoint();
    88 
    89 
    89 private:
    90 private:
    90     void mapping_data();
    91     void mapping_data();
    91 };
    92 };
    92 
    93 
   791 
   792 
   792     QCOMPARE(x, 10);
   793     QCOMPARE(x, 10);
   793     QCOMPARE(y, 10);
   794     QCOMPARE(y, 10);
   794 }
   795 }
   795 
   796 
       
   797 void tst_QTransform::mapPathWithPoint()
       
   798 {
       
   799     QPainterPath p(QPointF(10, 10));
       
   800     p = QTransform::fromTranslate(10, 10).map(p);
       
   801     QCOMPARE(p.currentPosition(), QPointF(20, 20));
       
   802 }
       
   803 
   796 QTEST_APPLESS_MAIN(tst_QTransform)
   804 QTEST_APPLESS_MAIN(tst_QTransform)
   797 
   805 
   798 
   806 
   799 #include "tst_qtransform.moc"
   807 #include "tst_qtransform.moc"