src/gui/graphicsview/qgraphicsitem.h
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
   545     Q_PROPERTY(qreal y READ y WRITE setY NOTIFY yChanged)
   545     Q_PROPERTY(qreal y READ y WRITE setY NOTIFY yChanged)
   546     Q_PROPERTY(qreal z READ zValue WRITE setZValue NOTIFY zChanged)
   546     Q_PROPERTY(qreal z READ zValue WRITE setZValue NOTIFY zChanged)
   547     Q_PROPERTY(qreal rotation READ rotation WRITE setRotation NOTIFY rotationChanged)
   547     Q_PROPERTY(qreal rotation READ rotation WRITE setRotation NOTIFY rotationChanged)
   548     Q_PROPERTY(qreal scale READ scale WRITE setScale NOTIFY scaleChanged)
   548     Q_PROPERTY(qreal scale READ scale WRITE setScale NOTIFY scaleChanged)
   549     Q_PROPERTY(QPointF transformOriginPoint READ transformOriginPoint WRITE setTransformOriginPoint)
   549     Q_PROPERTY(QPointF transformOriginPoint READ transformOriginPoint WRITE setTransformOriginPoint)
       
   550     Q_PRIVATE_PROPERTY(QGraphicsItem::d_func(), QDeclarativeListProperty<QGraphicsObject> children READ childrenList DESIGNABLE false NOTIFY childrenChanged)
       
   551     Q_PRIVATE_PROPERTY(QGraphicsItem::d_func(), qreal width READ width WRITE setWidth NOTIFY widthChanged RESET resetWidth FINAL)
       
   552     Q_PRIVATE_PROPERTY(QGraphicsItem::d_func(), qreal height READ height WRITE setHeight NOTIFY heightChanged RESET resetHeight FINAL)
       
   553     Q_CLASSINFO("DefaultProperty", "children")
   550     Q_INTERFACES(QGraphicsItem)
   554     Q_INTERFACES(QGraphicsItem)
   551 public:
   555 public:
   552     QGraphicsObject(QGraphicsItem *parent = 0);
   556     QGraphicsObject(QGraphicsItem *parent = 0);
   553 
   557 
   554     // ### Qt 5: Disambiguate
   558     // ### Qt 5: Disambiguate
   569     void xChanged();
   573     void xChanged();
   570     void yChanged();
   574     void yChanged();
   571     void zChanged();
   575     void zChanged();
   572     void rotationChanged();
   576     void rotationChanged();
   573     void scaleChanged();
   577     void scaleChanged();
       
   578     void childrenChanged();
       
   579     void widthChanged();
       
   580     void heightChanged();
   574 
   581 
   575 protected:
   582 protected:
   576     QGraphicsObject(QGraphicsItemPrivate &dd, QGraphicsItem *parent, QGraphicsScene *scene);
   583     QGraphicsObject(QGraphicsItemPrivate &dd, QGraphicsItem *parent, QGraphicsScene *scene);
   577 private:
   584 private:
   578     friend class QGraphicsItem;
   585     friend class QGraphicsItem;