30 #include <QGraphicsItem>
31 #include <QGraphicsScene>
32 #include <QGraphicsView>
49 void setParentItem_deep();
50 void setParentItem_deep_reversed();
51 void deleteItemWithManyChildren();
54 void setTransform_data();
60 void createTextItem();
71 static inline void processEvents()
89 void tst_QGraphicsItem::cleanup()
93 void tst_QGraphicsItem::setParentItem()
102 void tst_QGraphicsItem::setParentItem_deep()
107 for (
int i = 0;
i < 10; ++
i) {
113 first->setParentItem(0);
117 void tst_QGraphicsItem::setParentItem_deep_reversed()
121 for (
int i = 0;
i < 100; ++
i) {
124 lastRect = parentRect;
130 void tst_QGraphicsItem::deleteItemWithManyChildren()
134 for (
int i = 0;
i < 1000; ++
i)
140 void tst_QGraphicsItem::setPos_data()
142 QTest::addColumn<QPointF>(
"pos");
149 void tst_QGraphicsItem::setPos()
162 void tst_QGraphicsItem::setTransform_data()
164 QTest::addColumn<QTransform>(
"transform");
173 void tst_QGraphicsItem::setTransform()
186 void tst_QGraphicsItem::rotate()
198 void tst_QGraphicsItem::scale()
210 void tst_QGraphicsItem::shear()
222 void tst_QGraphicsItem::translate()
234 void tst_QGraphicsItem::createTextItem()
245 #include "tst_qgraphicsitem.moc"
small capitals from c petite p scientific i
[1]
static void processEvents(QEventLoop::ProcessEventsFlags flags=QEventLoop::AllEvents)
The QFontInfo class provides general information about fonts. \inmodule QtGui.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
void setTransform(const QTransform &matrix, bool combine=false)
void setParentItem(QGraphicsItem *parent)
The QGraphicsRectItem class provides a rectangle item that you can add to a QGraphicsScene.
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
QGraphicsRectItem * addRect(const QRectF &rect, const QPen &pen=QPen(), const QBrush &brush=QBrush())
The QGraphicsTextItem class provides a text item that you can add to a QGraphicsScene to display form...
The QObject class is the base class of all Qt objects.
The QPointF class defines a point in the plane using floating point precision.
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QString class provides a Unicode character string.
virtual ~tst_QGraphicsItem()
Q_TESTLIB_EXPORT QTestData & newRow(const char *dataTag)
Q_CORE_EXPORT void qWait(int ms)
GLuint GLenum GLenum transform
GLenum GLenum GLenum GLenum GLenum scale
#define QTEST_MAIN(TestObject)
#define QFETCH(Type, name)
QRect childRect(QAccessibleInterface *iface, int index=0)