equal
deleted
inserted
replaced
73 void transforms(); |
73 void transforms(); |
74 void transforms_data(); |
74 void transforms_data(); |
75 void childrenRect(); |
75 void childrenRect(); |
76 void childrenRectBug(); |
76 void childrenRectBug(); |
77 void childrenRectBug2(); |
77 void childrenRectBug2(); |
|
78 void childrenRectBug3(); |
78 |
79 |
79 void childrenProperty(); |
80 void childrenProperty(); |
80 void resourcesProperty(); |
81 void resourcesProperty(); |
81 void mouseFocus(); |
82 void mouseFocus(); |
82 |
83 |
778 QCOMPARE(item->x(), qreal(75)); |
779 QCOMPARE(item->x(), qreal(75)); |
779 |
780 |
780 delete canvas; |
781 delete canvas; |
781 } |
782 } |
782 |
783 |
|
784 // QTBUG-12722 |
|
785 void tst_QDeclarativeItem::childrenRectBug3() |
|
786 { |
|
787 QDeclarativeView *canvas = new QDeclarativeView(0); |
|
788 canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/childrenRectBug3.qml")); |
|
789 canvas->show(); |
|
790 |
|
791 //don't crash on delete |
|
792 delete canvas; |
|
793 } |
|
794 |
783 template<typename T> |
795 template<typename T> |
784 T *tst_QDeclarativeItem::findItem(QGraphicsObject *parent, const QString &objectName) |
796 T *tst_QDeclarativeItem::findItem(QGraphicsObject *parent, const QString &objectName) |
785 { |
797 { |
786 if (!parent) |
798 if (!parent) |
787 return 0; |
799 return 0; |