![]() |
Qt 4.8
|
The QInputEvent class is the base class for events that describe user input. More...
#include <qevent.h>
Public Functions | |
| Qt::KeyboardModifiers | modifiers () const |
| Returns the keyboard modifier flags that existed immediately before the event occurred. More... | |
| QInputEvent (Type type, Qt::KeyboardModifiers modifiers=Qt::NoModifier) | |
| void | setModifiers (Qt::KeyboardModifiers amodifiers) |
| Sets the keyboard modifiers flags for this event. More... | |
| ~QInputEvent () | |
Public Functions inherited from QEvent | |
| void | accept () |
| Sets the accept flag of the event object, the equivalent of calling setAccepted(true). More... | |
| void | ignore () |
| Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). More... | |
| bool | isAccepted () const |
| QEvent (Type type) | |
| Contructs an event object of type type. More... | |
| void | setAccepted (bool accepted) |
| bool | spontaneous () const |
| Returns true if the event originated outside the application (a system event); otherwise returns false. More... | |
| Type | type () const |
| Returns the event type. More... | |
| virtual | ~QEvent () |
| Destroys the event. More... | |
Protected Variables | |
| Qt::KeyboardModifiers | modState |
Protected Variables inherited from QEvent | |
| QEventPrivate * | d |
| ushort | t |
The QInputEvent class is the base class for events that describe user input.
| QInputEvent::QInputEvent | ( | Type | type, |
| Qt::KeyboardModifiers | modifiers = Qt::NoModifier |
||
| ) |
Definition at line 77 of file qevent.cpp.
Referenced by QKeyEvent::hasExtendedInfo(), QContextMenuEvent::QContextMenuEvent(), QWheelEvent::QWheelEvent(), QMouseEvent::~QMouseEvent(), and QWheelEvent::~QWheelEvent().
| QInputEvent::~QInputEvent | ( | ) |
Definition at line 84 of file qevent.cpp.
|
inline |
Returns the keyboard modifier flags that existed immediately before the event occurred.
Definition at line 79 of file qevent.h.
Referenced by QGraphicsView::contextMenuEvent(), QScrollBar::event(), QWidget::event(), QAxServerBase::eventFilter(), QBasicMouseEventTransition::eventTest(), QMouseEvent::hasExtendedInfo(), QKeyEvent::hasExtendedInfo(), QKeyEvent::key(), QKeyEvent::modifiers(), QGraphicsView::mouseDoubleClickEvent(), QMenuPrivate::mouseEventTaken(), QmlJSDebugger::LiveSelectionTool::mouseMoveEvent(), QGraphicsViewPrivate::mouseMoveEventHandler(), QmlJSDebugger::LiveSelectionTool::mousePressEvent(), QLineEdit::mousePressEvent(), QGraphicsView::mousePressEvent(), QmlJSDebugger::ZoomTool::mouseReleaseEvent(), QmlJSDebugger::LiveSelectionTool::mouseReleaseEvent(), QGraphicsView::mouseReleaseEvent(), QApplication::notify(), operator<<(), QWheelEvent::orientation(), QTextControl::processEvent(), QLineControl::processMouseEvent(), QmlJSDebugger::LiveSelectionTool::selectUnderPoint(), QmlJSDebugger::ZoomTool::wheelEvent(), QWorkspace::wheelEvent(), QAbstractSpinBox::wheelEvent(), QAbstractSlider::wheelEvent(), QGraphicsView::wheelEvent(), and QTextEdit::wheelEvent().
|
inline |
Sets the keyboard modifiers flags for this event.
Definition at line 80 of file qevent.h.
Referenced by QShortcutMap::nextState().
|
protected |
Definition at line 82 of file qevent.h.
Referenced by QWheelEvent::QWheelEvent(), QMouseEvent::~QMouseEvent(), and QWheelEvent::~QWheelEvent().