7#ifndef KMODIFIERKEYINFO_H
8#define KMODIFIERKEYINFO_H
10#include <kguiaddons_export.h>
12#include <QExplicitlySharedDataPointer>
15class KModifierKeyInfoProvider;
175 QExplicitlySharedDataPointer<KModifierKeyInfoProvider>
const p;
Get information about the state of the keyboard's modifier keys.
Definition kmodifierkeyinfo.h:36
void keyPressed(Qt::Key key, bool pressed)
This signal is emitted whenever the pressed state of a key changes (key press or key release).
void keyAdded(Qt::Key key)
This signal is emitted whenever a new modifier is found due to the keyboard mapping changing.
const QList< Qt::Key > knownKeys() const
Get a list of known keys.
void keyRemoved(Qt::Key key)
This signal is emitted whenever a previously known modifier no longer exists due to the keyboard mapp...
bool setKeyLocked(Qt::Key key, bool locked)
Set the locked state of a key.
KModifierKeyInfo(QObject *parent=nullptr)
Default constructor.
void keyLocked(Qt::Key key, bool locked)
This signal is emitted whenever the locked state of a key changes.
bool knowsKey(Qt::Key key) const
Check if a key is known by the underlying window system and can be queried.
bool setKeyLatched(Qt::Key key, bool latched)
Set the latched state of a key.
~KModifierKeyInfo() override
Destructor.
void keyLatched(Qt::Key key, bool latched)
This signal is emitted whenever the latched state of a key changes.
bool isButtonPressed(Qt::MouseButton button) const
Synchronously check if a mouse button is pressed.
bool isKeyLatched(Qt::Key key) const
Synchronously check if a key is latched.
bool isKeyPressed(Qt::Key key) const
Synchronously check if a key is pressed.
bool isKeyLocked(Qt::Key key) const
Synchronously check if a key is locked.
void buttonPressed(Qt::MouseButton button, bool pressed)
This signal is emitted whenever the pressed state of a mouse button changes (mouse button press or re...