KDEUI
Go to the documentation of this file. 21 #include "kmodifierkeyinfoprovider_p.h" 25 bool KModifierKeyInfoProvider::isKeyPressed(Qt::Key key)
const 27 if (m_modifierStates.contains(key)) {
28 return m_modifierStates[key] & Pressed;
33 bool KModifierKeyInfoProvider::isKeyLatched(Qt::Key key)
const 35 if (m_modifierStates.contains(key)) {
36 return m_modifierStates[key] & Latched;
41 bool KModifierKeyInfoProvider::isKeyLocked(Qt::Key key)
const 43 if (m_modifierStates.contains(key)) {
44 return m_modifierStates[key] & Locked;
49 bool KModifierKeyInfoProvider::isButtonPressed(Qt::MouseButton button)
const 51 if (m_buttonStates.contains(button)) {
52 return m_buttonStates[button];
57 bool KModifierKeyInfoProvider::knowsKey(Qt::Key key)
const 59 return m_modifierStates.contains(key);
64 return m_modifierStates.keys();
67 #include "kmodifierkeyinfoprovider_p.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2018 The KDE developers.
Generated on Tue Aug 21 2018 18:46:25 by
doxygen 1.8.14 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.