Qt 4.8
Public Types | Signals | Public Functions | Properties | List of all members
QDeclarativePinch Class Reference

#include <qdeclarativepincharea_p.h>

Inheritance diagram for QDeclarativePinch:
QObject

Public Types

enum  Axis { NoDrag =0x00, XAxis =0x01, YAxis =0x02, XandYAxis =0x03 }
 

Signals

void activeChanged ()
 
void dragAxisChanged ()
 
void maximumRotationChanged ()
 
void maximumScaleChanged ()
 
void maximumXChanged ()
 
void maximumYChanged ()
 
void minimumRotationChanged ()
 
void minimumScaleChanged ()
 
void minimumXChanged ()
 
void minimumYChanged ()
 
void targetChanged ()
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 This signal is emitted immediately before the object obj is destroyed, and can not be blocked. More...
 

Public Functions

bool active () const
 
Axis axis () const
 
qreal maximumRotation () const
 
qreal maximumScale () const
 
qreal minimumRotation () const
 
qreal minimumScale () const
 
 QDeclarativePinch ()
 
void resetTarget ()
 
void setActive (bool a)
 
void setAxis (Axis a)
 
void setMaximumRotation (qreal r)
 
void setMaximumScale (qreal s)
 
void setMinimumRotation (qreal r)
 
void setMinimumScale (qreal s)
 
void setTarget (QGraphicsObject *target)
 
void setXmax (qreal x)
 
void setXmin (qreal x)
 
void setYmax (qreal y)
 
void setYmin (qreal y)
 
QGraphicsObjecttarget () const
 
qreal xmax () const
 
qreal xmin () const
 
qreal ymax () const
 
qreal ymin () const
 
- Public Functions inherited from QObject
bool blockSignals (bool b)
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More...
 
const QObjectListchildren () const
 Returns a list of child objects. More...
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectInfo ()
 Dumps information about signal connections, etc. More...
 
void dumpObjectTree ()
 Dumps a tree of children to the debug output. More...
 
QList< QByteArraydynamicPropertyNames () const
 Returns the names of all properties that were dynamically added to the object using setProperty(). More...
 
virtual bool event (QEvent *)
 This virtual function receives events to an object and should return true if the event e was recognized and processed. More...
 
virtual bool eventFilter (QObject *, QEvent *)
 Filters events if this object has been installed as an event filter for the watched object. More...
 
template<typename T >
findChild (const QString &aName=QString()) const
 Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More...
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More...
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More...
 
void installEventFilter (QObject *)
 Installs an event filter filterObj on this object. More...
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false. More...
 
void killTimer (int id)
 Kills the timer with timer identifier, id. More...
 
virtual const QMetaObjectmetaObject () const
 Returns a pointer to the meta-object of this object. More...
 
void moveToThread (QThread *thread)
 Changes the thread affinity for this object and its children. More...
 
QString objectName () const
 
QObjectparent () const
 Returns a pointer to the parent object. More...
 
QVariant property (const char *name) const
 Returns the value of the object's name property. More...
 
Q_INVOKABLE QObject (QObject *parent=0)
 Constructs an object with parent object parent. More...
 
void removeEventFilter (QObject *)
 Removes an event filter object obj from this object. More...
 
void setObjectName (const QString &name)
 
void setParent (QObject *)
 Makes the object a child of parent. More...
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value. More...
 
void setUserData (uint id, QObjectUserData *data)
 
bool signalsBlocked () const
 Returns true if signals are blocked; otherwise returns false. More...
 
int startTimer (int interval)
 Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More...
 
QThreadthread () const
 Returns the thread in which the object lives. More...
 
QObjectUserDatauserData (uint id) const
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects. More...
 

Properties

bool active
 
Axis dragAxis
 
bool m_active
 
Axis m_axis
 
qreal m_maxRotation
 
qreal m_maxScale
 
qreal m_minRotation
 
qreal m_minScale
 
QGraphicsObjectm_target
 
qreal m_xmax
 
qreal m_xmin
 
qreal m_ymax
 
qreal m_ymin
 
qreal maximumRotation
 
qreal maximumScale
 
qreal maximumX
 
qreal maximumY
 
qreal minimumRotation
 
qreal minimumScale
 
qreal minimumX
 
qreal minimumY
 
QGraphicsObjecttarget
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 Schedules this object for deletion. More...
 
- Static Public Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More...
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 Disconnects signal in object sender from method in object receiver. More...
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
static QString tr (const char *sourceText, const char *comment=0, int n=-1)
 
static QString trUtf8 (const char *sourceText, const char *comment=0, int n=-1)
 
- Static Public Variables inherited from QObject
static const QMetaObject staticMetaObject
 This variable stores the meta-object for the class. More...
 
- Protected Functions inherited from QObject
virtual void childEvent (QChildEvent *)
 This event handler can be reimplemented in a subclass to receive child events. More...
 
virtual void connectNotify (const char *signal)
 This virtual function is called when something has been connected to signal in this object. More...
 
virtual void customEvent (QEvent *)
 This event handler can be reimplemented in a subclass to receive custom events. More...
 
virtual void disconnectNotify (const char *signal)
 This virtual function is called when something has been disconnected from signal in this object. More...
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal. More...
 
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. More...
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *)
 This event handler can be reimplemented in a subclass to receive timer events for the object. More...
 
- Protected Variables inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Variables inherited from QObject
static const QMetaObject staticQtMetaObject
 

Detailed Description

Definition at line 53 of file qdeclarativepincharea_p.h.

Enumerations

◆ Axis

Constructors and Destructors

◆ QDeclarativePinch()

QDeclarativePinch::QDeclarativePinch ( )

Functions

◆ active()

bool QDeclarativePinch::active ( ) const
inline

Definition at line 155 of file qdeclarativepincharea_p.h.

155 { return m_active; }

◆ activeChanged

void QDeclarativePinch::activeChanged ( )
signal

◆ axis()

Axis QDeclarativePinch::axis ( ) const
inline

Definition at line 118 of file qdeclarativepincharea_p.h.

118 { return m_axis; }

◆ dragAxisChanged

void QDeclarativePinch::dragAxisChanged ( )
signal

◆ maximumRotation()

qreal QDeclarativePinch::maximumRotation ( ) const
inline

Definition at line 109 of file qdeclarativepincharea_p.h.

109 { return m_maxRotation; }

◆ maximumRotationChanged

void QDeclarativePinch::maximumRotationChanged ( )
signal

◆ maximumScale()

qreal QDeclarativePinch::maximumScale ( ) const
inline

Definition at line 94 of file qdeclarativepincharea_p.h.

94 { return m_maxScale; }

◆ maximumScaleChanged

void QDeclarativePinch::maximumScaleChanged ( )
signal

◆ maximumXChanged

void QDeclarativePinch::maximumXChanged ( )
signal

◆ maximumYChanged

void QDeclarativePinch::maximumYChanged ( )
signal

◆ minimumRotation()

qreal QDeclarativePinch::minimumRotation ( ) const
inline

Definition at line 102 of file qdeclarativepincharea_p.h.

102 { return m_minRotation; }

◆ minimumRotationChanged

void QDeclarativePinch::minimumRotationChanged ( )
signal

◆ minimumScale()

qreal QDeclarativePinch::minimumScale ( ) const
inline

Definition at line 87 of file qdeclarativepincharea_p.h.

87 { return m_minScale; }

◆ minimumScaleChanged

void QDeclarativePinch::minimumScaleChanged ( )
signal

◆ minimumXChanged

void QDeclarativePinch::minimumXChanged ( )
signal

◆ minimumYChanged

void QDeclarativePinch::minimumYChanged ( )
signal

◆ resetTarget()

void QDeclarativePinch::resetTarget ( )
inline

Definition at line 80 of file qdeclarativepincharea_p.h.

80  {
81  if (!m_target)
82  return;
83  m_target = 0;
85  }
#define emit
Definition: qobjectdefs.h:76
QGraphicsObject * m_target

◆ setActive()

void QDeclarativePinch::setActive ( bool  a)
inline

Definition at line 156 of file qdeclarativepincharea_p.h.

156  {
157  if (a == m_active)
158  return;
159  m_active = a;
161  }
long ASN1_INTEGER_get ASN1_INTEGER * a
#define emit
Definition: qobjectdefs.h:76

◆ setAxis()

void QDeclarativePinch::setAxis ( Axis  a)
inline

Definition at line 119 of file qdeclarativepincharea_p.h.

119  {
120  if (a == m_axis)
121  return;
122  m_axis = a;
124  }
long ASN1_INTEGER_get ASN1_INTEGER * a
#define emit
Definition: qobjectdefs.h:76

◆ setMaximumRotation()

void QDeclarativePinch::setMaximumRotation ( qreal  r)
inline

Definition at line 110 of file qdeclarativepincharea_p.h.

110  {
111  if (r == m_maxRotation)
112  return;
113  m_maxRotation = r;
115  }
#define emit
Definition: qobjectdefs.h:76
void maximumRotationChanged()

◆ setMaximumScale()

void QDeclarativePinch::setMaximumScale ( qreal  s)
inline

Definition at line 95 of file qdeclarativepincharea_p.h.

95  {
96  if (s == m_maxScale)
97  return;
98  m_maxScale = s;
100  }
#define emit
Definition: qobjectdefs.h:76
void maximumScaleChanged()

◆ setMinimumRotation()

void QDeclarativePinch::setMinimumRotation ( qreal  r)
inline

Definition at line 103 of file qdeclarativepincharea_p.h.

103  {
104  if (r == m_minRotation)
105  return;
106  m_minRotation = r;
108  }
#define emit
Definition: qobjectdefs.h:76
void minimumRotationChanged()

◆ setMinimumScale()

void QDeclarativePinch::setMinimumScale ( qreal  s)
inline

Definition at line 88 of file qdeclarativepincharea_p.h.

88  {
89  if (s == m_minScale)
90  return;
91  m_minScale = s;
93  }
#define emit
Definition: qobjectdefs.h:76
void minimumScaleChanged()

◆ setTarget()

void QDeclarativePinch::setTarget ( QGraphicsObject target)
inline

Definition at line 74 of file qdeclarativepincharea_p.h.

74  {
75  if (target == m_target)
76  return;
77  m_target = target;
79  }
#define emit
Definition: qobjectdefs.h:76
QGraphicsObject * m_target
QGraphicsObject * target() const

◆ setXmax()

void QDeclarativePinch::setXmax ( qreal  x)
inline

Definition at line 134 of file qdeclarativepincharea_p.h.

134  {
135  if (x == m_xmax)
136  return;
137  m_xmax = x;
139  }
#define emit
Definition: qobjectdefs.h:76

◆ setXmin()

void QDeclarativePinch::setXmin ( qreal  x)
inline

Definition at line 127 of file qdeclarativepincharea_p.h.

127  {
128  if (x == m_xmin)
129  return;
130  m_xmin = x;
132  }
#define emit
Definition: qobjectdefs.h:76

◆ setYmax()

void QDeclarativePinch::setYmax ( qreal  y)
inline

Definition at line 148 of file qdeclarativepincharea_p.h.

148  {
149  if (y == m_ymax)
150  return;
151  m_ymax = y;
153  }
#define emit
Definition: qobjectdefs.h:76

◆ setYmin()

void QDeclarativePinch::setYmin ( qreal  y)
inline

Definition at line 141 of file qdeclarativepincharea_p.h.

141  {
142  if (y == m_ymin)
143  return;
144  m_ymin = y;
146  }
#define emit
Definition: qobjectdefs.h:76

◆ target()

QGraphicsObject* QDeclarativePinch::target ( ) const
inline

Definition at line 73 of file qdeclarativepincharea_p.h.

73 { return m_target; }
QGraphicsObject * m_target

◆ targetChanged

void QDeclarativePinch::targetChanged ( )
signal

◆ xmax()

qreal QDeclarativePinch::xmax ( ) const
inline

Definition at line 133 of file qdeclarativepincharea_p.h.

Referenced by QDeclarativePinchArea::updatePinch().

133 { return m_xmax; }

◆ xmin()

qreal QDeclarativePinch::xmin ( ) const
inline

Definition at line 126 of file qdeclarativepincharea_p.h.

Referenced by QDeclarativePinchArea::updatePinch().

126 { return m_xmin; }

◆ ymax()

qreal QDeclarativePinch::ymax ( ) const
inline

Definition at line 147 of file qdeclarativepincharea_p.h.

Referenced by QDeclarativePinchArea::updatePinch().

147 { return m_ymax; }

◆ ymin()

qreal QDeclarativePinch::ymin ( ) const
inline

Definition at line 140 of file qdeclarativepincharea_p.h.

Referenced by QDeclarativePinchArea::updatePinch().

140 { return m_ymin; }

Properties

◆ active

bool QDeclarativePinch::active
private

Definition at line 68 of file qdeclarativepincharea_p.h.

◆ dragAxis

Axis QDeclarativePinch::dragAxis
private

Definition at line 63 of file qdeclarativepincharea_p.h.

◆ m_active

bool QDeclarativePinch::m_active
private

Definition at line 187 of file qdeclarativepincharea_p.h.

◆ m_axis

Axis QDeclarativePinch::m_axis
private

Definition at line 182 of file qdeclarativepincharea_p.h.

◆ m_maxRotation

qreal QDeclarativePinch::m_maxRotation
private

Definition at line 181 of file qdeclarativepincharea_p.h.

◆ m_maxScale

qreal QDeclarativePinch::m_maxScale
private

Definition at line 179 of file qdeclarativepincharea_p.h.

◆ m_minRotation

qreal QDeclarativePinch::m_minRotation
private

Definition at line 180 of file qdeclarativepincharea_p.h.

◆ m_minScale

qreal QDeclarativePinch::m_minScale
private

Definition at line 178 of file qdeclarativepincharea_p.h.

◆ m_target

QGraphicsObject* QDeclarativePinch::m_target
private

Definition at line 177 of file qdeclarativepincharea_p.h.

◆ m_xmax

qreal QDeclarativePinch::m_xmax
private

Definition at line 184 of file qdeclarativepincharea_p.h.

◆ m_xmin

qreal QDeclarativePinch::m_xmin
private

Definition at line 183 of file qdeclarativepincharea_p.h.

◆ m_ymax

qreal QDeclarativePinch::m_ymax
private

Definition at line 186 of file qdeclarativepincharea_p.h.

◆ m_ymin

qreal QDeclarativePinch::m_ymin
private

Definition at line 185 of file qdeclarativepincharea_p.h.

◆ maximumRotation

qreal QDeclarativePinch::maximumRotation
private

Definition at line 62 of file qdeclarativepincharea_p.h.

◆ maximumScale

qreal QDeclarativePinch::maximumScale
private

Definition at line 60 of file qdeclarativepincharea_p.h.

◆ maximumX

qreal QDeclarativePinch::maximumX
private

Definition at line 65 of file qdeclarativepincharea_p.h.

◆ maximumY

qreal QDeclarativePinch::maximumY
private

Definition at line 67 of file qdeclarativepincharea_p.h.

◆ minimumRotation

qreal QDeclarativePinch::minimumRotation
private

Definition at line 61 of file qdeclarativepincharea_p.h.

◆ minimumScale

qreal QDeclarativePinch::minimumScale
private

Definition at line 59 of file qdeclarativepincharea_p.h.

◆ minimumX

qreal QDeclarativePinch::minimumX
private

Definition at line 64 of file qdeclarativepincharea_p.h.

◆ minimumY

qreal QDeclarativePinch::minimumY
private

Definition at line 66 of file qdeclarativepincharea_p.h.

◆ target

QGraphicsObject* QDeclarativePinch::target
private

Definition at line 58 of file qdeclarativepincharea_p.h.

Referenced by QDeclarativePinchArea::updatePinch().


The documentation for this class was generated from the following files: