4#ifndef QQUICKPINCHHANDLER_H
5#define QQUICKPINCHHANDLER_H
18#include <QtGui/qevent.h>
19#include <QtQuick/qquickitem.h>
22#include <private/qquicktranslate_p.h>
34#if QT_DEPRECATED_SINCE(6, 5)
35 Q_PROPERTY(
qreal minimumScale READ minimumScale WRITE setMinimumScale NOTIFY minimumScaleChanged FINAL)
36 Q_PROPERTY(
qreal maximumScale READ maximumScale WRITE setMaximumScale NOTIFY maximumScaleChanged FINAL)
39 Q_PROPERTY(
qreal activeScale READ activeScale NOTIFY scaleChanged FINAL)
40 Q_PROPERTY(
qreal persistentScale READ persistentScale WRITE setPersistentScale NOTIFY scaleChanged FINAL)
43#if QT_DEPRECATED_SINCE(6, 5)
44 Q_PROPERTY(
qreal minimumRotation READ minimumRotation WRITE setMinimumRotation NOTIFY minimumRotationChanged FINAL)
45 Q_PROPERTY(
qreal maximumRotation READ maximumRotation WRITE setMaximumRotation NOTIFY maximumRotationChanged FINAL)
48 Q_PROPERTY(
qreal activeRotation READ activeRotation NOTIFY rotationChanged FINAL)
49 Q_PROPERTY(
qreal persistentRotation READ persistentRotation WRITE setPersistentRotation NOTIFY rotationChanged FINAL)
53#if QT_DEPRECATED_SINCE(6, 5)
56 Q_PROPERTY(
QPointF activeTranslation READ activeTranslation NOTIFY translationChanged REVISION(6, 5) FINAL)
57 Q_PROPERTY(
QPointF persistentTranslation READ persistentTranslation WRITE setPersistentTranslation NOTIFY translationChanged REVISION(6, 5) FINAL)
67#if QT_DEPRECATED_SINCE(6, 5)
72 void setPersistentTranslation(
const QPointF &trans);
75#if QT_DEPRECATED_SINCE(6, 5)
76 qreal minimumScale()
const {
return m_scaleAxis.
minimum(); }
77 void setMinimumScale(
qreal minimumScale);
78 qreal maximumScale()
const {
return m_scaleAxis.maximum(); }
79 void setMaximumScale(
qreal maximumScale);
80 qreal scale()
const {
return persistentScale(); }
88#if QT_DEPRECATED_SINCE(6, 5)
89 qreal minimumRotation()
const {
return m_rotationAxis.
minimum(); }
90 void setMinimumRotation(
qreal minimumRotation);
91 qreal maximumRotation()
const {
return m_rotationAxis.maximum(); }
92 void setMaximumRotation(
qreal maximumRotation);
93 qreal rotation()
const {
return activeRotation(); }
96 void setActiveRotation(
qreal rot);
98 void setPersistentRotation(
qreal rot);
122 qreal m_startDistance = 0;
123 qreal m_accumulatedStartCentroidDistance = 0;
\inmodule QtCore\reentrant
A base class for pointer events.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
void handlePointerEventImpl(QPointerEvent *event) override
This function can be overridden to implement whatever behavior a specific subclass is intended to hav...
bool wantsPointerEvent(QPointerEvent *event) override
It is the responsibility of this function to decide whether the event could be relevant at all to thi...
void onActiveChanged() override
void rotationChanged(qreal delta)
void minimumScaleChanged()
qreal persistentRotation() const
QQuickDragAxis * scaleAxis()
QQuickDragAxis * rotationAxis()
void scaleChanged(qreal delta)
qreal activeScale() const
qreal activeRotation() const
void maximumRotationChanged()
QPointF persistentTranslation() const
qreal persistentScale() const
void translationChanged(QVector2D delta)
void minimumRotationChanged()
void maximumScaleChanged()
QPointF activeTranslation() const
The QVector2D class represents a vector or vertex in 2D space.
Combined button and popup list for selecting options.
GLenum GLenum GLenum GLenum GLenum scale
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent