10 #ifndef QWT_EVENT_PATTERN 11 #define QWT_EVENT_PATTERN 15 #include <qnamespace.h> 154 Qt::KeyboardModifiers modifierCodes = Qt::NoModifier ):
156 modifiers( modifierCodes )
173 Qt::KeyboardModifiers modifierCodes = Qt::NoModifier ):
175 modifiers( modifierCodes )
189 void initMousePattern(
int numButtons );
190 void initKeyPattern();
193 Qt::KeyboardModifiers = Qt::NoModifier );
196 Qt::KeyboardModifiers modifiers = Qt::NoModifier );
211 virtual bool mouseMatch(
const MousePattern &,
const QMouseEvent * )
const;
212 virtual bool keyMatch(
const KeyPattern &,
const QKeyEvent * )
const;
216 #if defined(_MSC_VER) 217 #pragma warning(push) 218 #pragma warning(disable: 4251) 222 #if defined(_MSC_VER) A pattern for mouse events.
MousePattern(Qt::MouseButton btn=Qt::NoButton, Qt::KeyboardModifiers modifierCodes=Qt::NoModifier)
Constructor.
QVector< KeyPattern > d_keyPattern
QVector< MousePattern > d_mousePattern
KeyPattern(int keyCode=Qt::Key_unknown, Qt::KeyboardModifiers modifierCodes=Qt::NoModifier)
Constructor.
A pattern for key events.
Qt::KeyboardModifiers modifiers
Keyboard modifier.
KeyPatternCode
Symbolic keyboard input codes.
Qt::KeyboardModifiers modifiers
Modifiers.
bool operator==(QwtEventPattern::MousePattern b1, QwtEventPattern::MousePattern b2)
Compare operator.
A collection of event patterns.
MousePatternCode
Symbolic mouse input codes.
Qt::MouseButton button
Button.