42 #ifndef QDECLARATIVEEVENTS_P_H 43 #define QDECLARATIVEEVENTS_P_H 58 #include <QtCore/qobject.h> 59 #include <QtGui/qevent.h> 75 :
event(type, key, modifiers, text, autorep, count) {
event.
setAccepted(
false); }
79 int key()
const {
return event.key(); }
83 int count()
const {
return event.count(); }
86 void setAccepted(
bool accepted) {
event.setAccepted(accepted); }
106 ,
bool isClick=
false,
bool wasHeld=
false)
107 : _x(x), _y(y), _button(button), _buttons(buttons), _modifiers(modifiers)
108 , _wasHeld(wasHeld), _isClick(isClick), _accepted(true) {}
110 int x()
const {
return _x; }
111 int y()
const {
return _y; }
141 #endif // QDECLARATIVEEVENTS_P_H
Qt::MouseButtons _buttons
The QKeyEvent class describes a key event.
#define QT_END_NAMESPACE
This macro expands to.
#define QML_DECLARE_TYPE(TYPE)
void setAccepted(bool accepted)
QDeclarativeKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString &text=QString(), bool autorep=false, ushort count=1)
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QDeclarativeKeyEvent(const QKeyEvent &ke)
Qt::KeyboardModifiers _modifiers
Type
This enum type defines the valid event types in Qt.
void setAccepted(bool accepted)
void setAccepted(bool accepted)
bool isAutoRepeat() const
QDeclarativeMouseEvent(int x, int y, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, bool isClick=false, bool wasHeld=false)