#include <shortcuthandler.h>
The ShortcutHandler type provides a way to register global key shorcuts.
Example usage:
name:
"Activate Something"
text: i18n(
"Activate Something")
onActivated: doSomething()
}
Definition at line 32 of file shortcuthandler.h.
◆ ShortcutHandler()
KWin::ShortcutHandler::ShortcutHandler |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ activated
void KWin::ShortcutHandler::activated |
( |
| ) |
|
|
signal |
◆ classBegin()
void KWin::ShortcutHandler::classBegin |
( |
| ) |
|
|
override |
◆ componentComplete()
void KWin::ShortcutHandler::componentComplete |
( |
| ) |
|
|
override |
◆ name()
QString KWin::ShortcutHandler::name |
( |
| ) |
const |
◆ nameChanged
void KWin::ShortcutHandler::nameChanged |
( |
| ) |
|
|
signal |
◆ sequence()
QVariant KWin::ShortcutHandler::sequence |
( |
| ) |
const |
◆ sequenceChanged
void KWin::ShortcutHandler::sequenceChanged |
( |
| ) |
|
|
signal |
◆ setName()
void KWin::ShortcutHandler::setName |
( |
const QString & | name | ) |
|
◆ setSequence()
void KWin::ShortcutHandler::setSequence |
( |
const QVariant & | sequence | ) |
|
◆ setText()
void KWin::ShortcutHandler::setText |
( |
const QString & | text | ) |
|
◆ text()
QString KWin::ShortcutHandler::text |
( |
| ) |
const |
◆ textChanged
void KWin::ShortcutHandler::textChanged |
( |
| ) |
|
|
signal |
◆ name
QString KWin::ShortcutHandler::name |
|
readwrite |
This property specifies the unique shortcut identifier, not localized.
The shortcut name cannot be changed once the ShortcutHandler is constructed.
Definition at line 42 of file shortcuthandler.h.
◆ sequence
QVariant KWin::ShortcutHandler::sequence |
|
readwrite |
This property holds the key sequence for this shortcut. The key sequence can be specified using a string containing a sequence of keys that are needed to be pressed to activate the shortcut, e.g. Meta+K
.
The key sequence is optional. If omitted, the user can assign a key sequence to this shortcut in system settings.
The key sequence cannot be changed once the ShortcutHandler is constructed.
Definition at line 57 of file shortcuthandler.h.
◆ text
QString KWin::ShortcutHandler::text |
|
readwrite |
This property specifies human readable name of the shortcut.
Definition at line 46 of file shortcuthandler.h.
The documentation for this class was generated from the following files: