KDEUI
Go to the documentation of this file.
21#include "kmodifierkeyinfoprovider_p.h"
25bool KModifierKeyInfoProvider::isKeyPressed(Qt::Key key)
const
27 if (m_modifierStates.contains(key)) {
28 return m_modifierStates[key] & Pressed;
33bool KModifierKeyInfoProvider::isKeyLatched(Qt::Key key)
const
35 if (m_modifierStates.contains(key)) {
36 return m_modifierStates[key] & Latched;
41bool KModifierKeyInfoProvider::isKeyLocked(Qt::Key key)
const
43 if (m_modifierStates.contains(key)) {
44 return m_modifierStates[key] & Locked;
49bool KModifierKeyInfoProvider::isButtonPressed(Qt::MouseButton button)
const
51 if (m_buttonStates.contains(button)) {
52 return m_buttonStates[button];
57bool 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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.