MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / setShortCutInfo

Method setShortCutInfo

src/base/abstractaction.cpp:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void AbstractAction::setShortCutInfo(const QString &id, const QString &description, const QKeySequence defaultShortCut)
45{
46 d->hasShortCut = true;
47 d->id = id;
48 d->description = description;
49 if(!defaultShortCut.isEmpty() && d->action->shortcut().isEmpty())
50 d->action->setShortcut(defaultShortCut);
51 d->keySequence = defaultShortCut.isEmpty() ? d->action->shortcut() : defaultShortCut;
52}
53
54bool AbstractAction::hasShortCut()
55{

Callers 1

initializeMethod · 0.80

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected