src/declarative/graphicsitems/qdeclarativeevents.cpp
changeset 37 758a864f9613
parent 30 5dc02b23752f
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
    43 
    43 
    44 QT_BEGIN_NAMESPACE
    44 QT_BEGIN_NAMESPACE
    45 /*!
    45 /*!
    46     \qmlclass KeyEvent QDeclarativeKeyEvent
    46     \qmlclass KeyEvent QDeclarativeKeyEvent
    47     \since 4.7
    47     \since 4.7
       
    48     \ingroup qml-event-elements
       
    49     
    48     \brief The KeyEvent object provides information about a key event.
    50     \brief The KeyEvent object provides information about a key event.
    49 
    51 
    50     For example, the following changes the Item's state property when the Enter
    52     For example, the following changes the Item's state property when the Enter
    51     key is pressed:
    53     key is pressed:
    52     \qml
    54     \qml
    56 }
    58 }
    57     \endqml
    59     \endqml
    58 */
    60 */
    59 
    61 
    60 /*!
    62 /*!
    61     \internal
       
    62     \class QDeclarativeKeyEvent
       
    63 */
       
    64 
       
    65 /*!
       
    66     \qmlproperty int KeyEvent::key
    63     \qmlproperty int KeyEvent::key
    67 
    64 
    68     This property holds the code of the key that was pressed or released.
    65     This property holds the code of the key that was pressed or released.
    69 
    66 
    70     See \l {Qt::Key}{Qt.Key} for the list of keyboard codes. These codes are
    67     See \l {Qt::Key}{Qt.Key} for the list of keyboard codes. These codes are
   113 
   110 
   114 
   111 
   115 /*!
   112 /*!
   116     \qmlclass MouseEvent QDeclarativeMouseEvent
   113     \qmlclass MouseEvent QDeclarativeMouseEvent
   117     \since 4.7
   114     \since 4.7
       
   115     \ingroup qml-event-elements
       
   116     
   118     \brief The MouseEvent object provides information about a mouse event.
   117     \brief The MouseEvent object provides information about a mouse event.
   119 
   118 
   120     The position of the mouse can be found via the x and y properties.
   119     The position of the mouse can be found via the x and y properties.
   121     The button that caused the event is available via the button property.
   120     The button that caused the event is available via the button property.
   122 */
   121 */