diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-05-11 12:19:17 (GMT) |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-05-11 12:19:55 (GMT) |
commit | e51c865ceb47dddfedb83ca4554ead21bd24ce7c (patch) | |
tree | e8133a2e06fabee2d3c74b970255a7e1a1fe681b /src/gui/kernel/qevent.cpp | |
parent | aeea8fd5a940787600002dda39a10dff4d19d090 (diff) | |
download | Qt-e51c865ceb47dddfedb83ca4554ead21bd24ce7c.zip Qt-e51c865ceb47dddfedb83ca4554ead21bd24ce7c.tar.gz Qt-e51c865ceb47dddfedb83ca4554ead21bd24ce7c.tar.bz2 |
Explaining details in QKeyEvent consruktor signature
Explained the role of the key attribute.
Task-number:246839
Rev-by: Richard Moe Gustavsen
Diffstat (limited to 'src/gui/kernel/qevent.cpp')
-rw-r--r-- | src/gui/kernel/qevent.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index 8c7e47d..2aed287 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -675,12 +675,13 @@ QWheelEvent::QWheelEvent(const QPoint &pos, const QPoint& globalPos, int delta, The \a type parameter must be QEvent::KeyPress, QEvent::KeyRelease, or QEvent::ShortcutOverride. - If \a key is 0, the event is not a result of - a known key; for example, it may be the result of a compose - sequence or keyboard macro. The \a modifiers holds the keyboard - modifiers, and the given \a text is the Unicode text that the - key generated. If \a autorep is true, isAutoRepeat() will be - true. \a count is the number of keys involved in the event. + Int \a key is the code for the Qt::Key that the event loop should listen + for. If \a key is 0, the event is not a result of a known key; for + example, it may be the result of a compose sequence or keyboard macro. + The \a modifiers holds the keyboard modifiers, and the given \a text + is the Unicode text that the key generated. If \a autorep is true, + isAutoRepeat() will be true. \a count is the number of keys involved + in the event. */ QKeyEvent::QKeyEvent(Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text, bool autorep, ushort count) |