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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.