mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
doc
This commit is contained in:
parent
62c02e3fce
commit
d7057904ba
1 changed files with 7 additions and 0 deletions
|
|
@ -115,6 +115,13 @@ ShortcutKey ShortcutsSettings::getShortcut(const QString &name) const
|
||||||
return getDefaultShortcut(name);
|
return getDefaultShortcut(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the first shortcut for the given action.
|
||||||
|
*
|
||||||
|
* NOTE: In most cases you should be using ShortcutsSettings::getShortcut instead,
|
||||||
|
* as that will return all shortcuts if there are multiple shortcuts.
|
||||||
|
* The only reason to use this method is if an object does not accept multiple shortcuts, such as with QButtons.
|
||||||
|
*/
|
||||||
QKeySequence ShortcutsSettings::getSingleShortcut(const QString &name) const
|
QKeySequence ShortcutsSettings::getSingleShortcut(const QString &name) const
|
||||||
{
|
{
|
||||||
return getShortcut(name).at(0);
|
return getShortcut(name).at(0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue