48 #include <private/qdeclarativeproperty_p.h> 49 #include <private/qdeclarativeitem_p.h> 51 #include <QtCore/qdebug.h> 52 #include <QtCore/qstringlist.h> 54 #include <QtGui/qevent.h> 56 #include <private/qobject_p.h> 58 #ifndef QT_NO_GESTURES 168 for(
int ii = 0; ii < props.
count(); ++ii)
192 for (
int i = 0; i < values.
count(); ++i) {
195 if (value.
userType() == qMetaTypeId<QDeclarativeCustomParserNode>()) {
198 }
else if (value.
userType() == qMetaTypeId<QDeclarativeCustomParserProperty>()) {
229 if (!
d->componentcomplete)
233 while (!ds.
atEnd()) {
250 d->componentcomplete=
true;
264 return d->gestureEvent(static_cast<QGestureEvent*>(event));
271 for (Bindings::Iterator
it = bindings.begin();
it != bindings.end(); ++
it) {
277 event->setAccepted(
true);
285 #endif // QT_NO_GESTURES The QVariant class acts like a union for the most common Qt data types.
QDeclarativeGestureAreaPrivate()
#define QT_END_NAMESPACE
This macro expands to.
QDeclarativeParserStatus ** d
#define it(className, varName)
QGesture * gesture() const
virtual bool event(QEvent *)
bool atEnd() const
Returns true if the I/O device has reached the end position (end of the stream or file) or if there i...
The QByteArray class provides an array of bytes.
QList< QVariant > assignedValues() const
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QVariant evaluate(bool *valueIsUndefined=0)
Evaulates the expression, returning the result of the evaluation, or an invalid QVariant if the expre...
int count(const T &t) const
Returns the number of occurrences of value in the list.
~QDeclarativeGestureArea()
The QString class provides a Unicode character string.
virtual QByteArray compile(const QList< QDeclarativeCustomParserProperty > &)
The QObject class is the base class of all Qt objects.
Q_DECLARATIVE_EXPORT QDeclarativeContext * qmlContext(const QObject *)
bool gestureEvent(QGestureEvent *event)
void grabGesture(Qt::GestureType type, Qt::GestureFlags flags=Qt::GestureFlags())
Subscribes the graphics object to the given gesture with specific flags.
void setAcceptTouchEvents(bool enabled)
If enabled is true, this item will accept touch events; otherwise, it will ignore them...
QMap< Qt::GestureType, QDeclarativeExpression * > Bindings
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QGestureEvent class provides the description of triggered gestures.
The QDeclarativeItem class provides the most basic of all visual items in QML.
QVariant data(int key) const
Returns this item's custom data for the key key as a QVariant.
bool sceneEvent(QEvent *event)
const T & at(int i) const
Returns the item at index position i in the list.
virtual int type() const
Returns the type of an item as an int.
static QString fromUtf8(const char *, int size=-1)
Returns a QString initialized with the first size bytes of the UTF-8 string str.
Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4)
bool hasError() const
Returns true if the last call to evaluate() resulted in an error, otherwise false.
QDeclarativeGestureArea(QDeclarativeItem *parent=0)
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
int userType() const
Returns the storage type of the value stored in the variant.
#define Q_DECLARE_PUBLIC(Class)
The QGesture class represents a gesture, containing properties that describe the corresponding user i...
virtual void componentComplete()
T qvariant_cast(const QVariant &)
virtual bool sceneEvent(QEvent *)
void setAcceptedMouseButtons(Qt::MouseButtons buttons)
Sets the mouse buttons that this item accepts mouse events for.
QGesture * gesture(Qt::GestureType type) const
Returns a gesture object by type.
The QDataStream class provides serialization of binary data to a QIODevice.
QDeclarativeError error() const
Return any error from the last call to evaluate().
The QDeclarativeExpression class evaluates JavaScript in a QML context.
QDeclarativeInfo qmlInfo(const QObject *me)
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
virtual void setCustomData(QObject *, const QByteArray &)