42 #ifndef QDECLARATIVEPINCHAREA_H 43 #define QDECLARATIVEPINCHAREA_H 75 if (target == m_target)
92 emit minimumScaleChanged();
99 emit maximumScaleChanged();
104 if (r == m_minRotation)
107 emit minimumRotationChanged();
111 if (r == m_maxRotation)
114 emit maximumRotationChanged();
123 emit dragAxisChanged();
131 emit minimumXChanged();
138 emit maximumXChanged();
145 emit minimumYChanged();
152 emit maximumYChanged();
160 emit activeChanged();
164 void targetChanged();
165 void minimumScaleChanged();
166 void maximumScaleChanged();
167 void minimumRotationChanged();
168 void maximumRotationChanged();
169 void dragAxisChanged();
170 void minimumXChanged();
171 void maximumXChanged();
172 void minimumYChanged();
173 void maximumYChanged();
174 void activeChanged();
211 :
QObject(), m_center(c), m_scale(s), m_angle(a), m_rotation(r)
212 , m_pointCount(0), m_accepted(true) {}
292 const QRectF &oldGeometry);
298 void handleRelease();
313 #endif // QDECLARATIVEPINCHAREA_H
The QVariant class acts like a union for the most common Qt data types.
#define QT_END_NAMESPACE
This macro expands to.
QScopedPointer< QGraphicsItemPrivate > d_ptr
#define QML_DECLARE_TYPE(TYPE)
void setPoint1(QPointF p)
virtual bool event(QEvent *)
The QPointF class defines a point in the plane using floating point precision.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
void setMaximumScale(qreal s)
void setPreviousCenter(QPointF c)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
QDeclarativePinchEvent(QPointF c, qreal s, qreal a, qreal r)
long ASN1_INTEGER_get ASN1_INTEGER * a
GraphicsItemChange
This enum describes the state changes that are notified by QGraphicsItem::itemChange().
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse press events for this item...
bool isEnabled() const
Returns true if the item is enabled; otherwise, false is returned.
void setMaximumRotation(qreal r)
The QObject class is the base class of all Qt objects.
void setPreviousScale(qreal s)
void setStartCenter(QPointF c)
void setStartPoint2(QPointF p)
qreal previousScale() const
qreal previousAngle() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
The QDeclarativeItem class provides the most basic of all visual items in QML.
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse move events for this item...
QPointF startPoint2() const
QVariant data(int key) const
Returns this item's custom data for the key key as a QVariant.
void enabledChanged()
This signal gets emitted whenever the item get's enabled or disabled.
QPointF startCenter() const
qreal minimumRotation() const
qreal minimumScale() const
QGraphicsObject * m_target
void setTarget(QGraphicsObject *target)
void setMinimumRotation(qreal r)
void setPoint2(QPointF p)
qreal maximumRotation() const
virtual void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
This function is called to handle this item's changes in geometry from oldGeometry to newGeometry...
void setMinimumScale(qreal s)
qreal maximumScale() const
#define Q_DECLARE_PRIVATE_D(Dptr, Class)
void setStartPoint1(QPointF p)
QPointF previousCenter() const
virtual QVariant itemChange(GraphicsItemChange, const QVariant &)
Note that unlike QGraphicsItems, QDeclarativeItem::itemChange() is not called during initial widget p...
void setPreviousAngle(qreal a)
#define Q_AUTOTEST_EXPORT
void setPointCount(int count)
virtual bool sceneEvent(QEvent *)
void setEnabled(bool enabled)
If enabled is true, the item is enabled; otherwise, it is disabled.
The QGraphicsObject class provides a base class for all graphics items that require signals...
The QEvent class is the base class of all event classes.
virtual bool sceneEventFilter(QGraphicsItem *watched, QEvent *event)
Filters events for the item watched.
QDeclarativePinch * pinch
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse release events for this it...
QPointF startPoint1() const