|
Krita Source Code Documentation
|
A container class for sets of shortcuts associated with an action. More...
#include <kis_input_profile.h>
Inheritance diagram for KisInputProfile:Classes | |
| class | Private |
Public Slots | |
| void | setName (const QString &name) |
Signals | |
| void | nameChanged () |
Public Member Functions | |
| void | addShortcut (KisShortcutConfiguration *shortcut) |
| QList< KisShortcutConfiguration * > | allShortcuts () const |
| KisInputProfile (QObject *parent=0) | |
| QString | name () const |
| void | removeShortcut (KisShortcutConfiguration *shortcut) |
| QList< KisShortcutConfiguration * > | shortcutsForAction (KisAbstractInputAction *action) const |
| ~KisInputProfile () override | |
Private Attributes | |
| Private *const | d |
A container class for sets of shortcuts associated with an action.
Definition at line 21 of file kis_input_profile.h.
| KisInputProfile::KisInputProfile | ( | QObject * | parent = 0 | ) |
Constructor.
Definition at line 28 of file kis_input_profile.cpp.
|
override |
| void KisInputProfile::addShortcut | ( | KisShortcutConfiguration * | shortcut | ) |
Add a shortcut to this profile.
| shortcut | The shortcut to add. |
Definition at line 65 of file kis_input_profile.cpp.
References KisShortcutConfiguration::action(), d, and KisInputProfile::Private::shortcuts.
| QList< KisShortcutConfiguration * > KisInputProfile::allShortcuts | ( | ) | const |
Definition at line 51 of file kis_input_profile.cpp.
References d, and KisInputProfile::Private::shortcuts.
| QString KisInputProfile::name | ( | ) | const |
Definition at line 39 of file kis_input_profile.cpp.
References d, and KisInputProfile::Private::name.
|
signal |
Emitted when the name of this profile changes.
| void KisInputProfile::removeShortcut | ( | KisShortcutConfiguration * | shortcut | ) |
Remove a shortcut from this profile.
| shortcut | The shortcut to remove. |
Definition at line 72 of file kis_input_profile.cpp.
References KisShortcutConfiguration::action(), d, and KisInputProfile::Private::shortcuts.
|
slot |
Set the name of this profile.
| name | The name to set. |
Definition at line 43 of file kis_input_profile.cpp.
References d, KisInputProfile::Private::name, name(), and nameChanged().
| QList< KisShortcutConfiguration * > KisInputProfile::shortcutsForAction | ( | KisAbstractInputAction * | action | ) | const |
| action | The action for which to list the shortcuts. |
Definition at line 56 of file kis_input_profile.cpp.
References d, and KisInputProfile::Private::shortcuts.
|
private |
Definition at line 80 of file kis_input_profile.h.