MCPcopy Create free account
hub / github.com/KDAB/GammaRay / insert

Method insert

plugins/actioninspector/actionvalidator.cpp:65–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void ActionValidator::insert(QAction *action)
66{
67 Q_ASSERT(action);
68
69 Q_FOREACH (const QKeySequence &sequence, action->shortcuts()) {
70 if (m_shortcutActionMap.values(sequence).contains(action))
71 continue;
72
73 m_shortcutActionMap.insert(sequence, action);
74 }
75
76 // also track object destruction
77 connect(action, &QObject::destroyed,
78 this, &ActionValidator::handleActionDestroyed);
79}
80
81
82

Callers 15

doInsertRowsMethod · 0.45
doMoveRowsMethod · 0.45
doInsertColumnsMethod · 0.45
objectAddedMethod · 0.45
objectReparentedMethod · 0.45
objectFavoritedMethod · 0.45
objectAddedMethod · 0.45
addMetaObjectMethod · 0.45
valueFromMetaEnumMethod · 0.45
registerEnumMethod · 0.45

Calls

no outgoing calls

Tested by 2

setSlowModeMethod · 0.36
tabFocusChainMethod · 0.36