34 m_d->nonRegisteredShortcuts = QSet<QString>(registeredShortcutIds.begin(), registeredShortcutIds.end());
43 m_d->nonRegisteredShortcuts.remove(name);
47 warnKrita <<
"WARNING: Uncategorized action" << name <<
"Dropping...";
51#ifdef ACTIONS_CHECKSUM_SANITY_CHECK
53 warnKrita <<
"WARNING: action" << name <<
"was not propertized!" <<
ppVar(action->property(
"isShortcutConfigurable").toBool());
73 if (
m_d->nonRegisteredShortcuts.size() > 4 &&
74 m_d->nonRegisteredShortcuts.size() < 160) {
76 warnKrita <<
"WARNING: The following shortcuts are not registered in the collection, "
77 "they might have wrong shortcuts in the end:";
78 Q_FOREACH (
const QString &str,
m_d->nonRegisteredShortcuts) {
85 Q_FOREACH (
const QString &str,
m_d->nonRegisteredShortcuts) {
87 m_d->fakeActions << action;
91 return m_d->actionCollections;
QList< QString > registeredShortcutIds() const
QAction * makeQAction(const QString &name, QObject *parent=0)
ActionCategory fetchActionCategory(const QString &name) const
static KisActionRegistry * instance()
QMap< QString, KisKActionCollection * > actionCollections()
const QScopedPointer< Private > m_d
void addAction(const QString &name, QAction *action)
registers the action in the snapshot and sorts it into a proper category. The action is not owned by ...
A container for a set of QAction objects.
Q_INVOKABLE QAction * addCategorizedAction(const QString &name, QAction *action, const QString &categoryName)
QSet< QString > nonRegisteredShortcuts
QMap< QString, KisKActionCollection * > actionCollections
QVector< QAction * > fakeActions