MCPcopy Create free account
hub / github.com/KDE/krita / createRedoAction

Method createRedoAction

libs/command/kundo2stack.cpp:1169–1180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1167*/
1168
1169QAction *KUndo2QStack::createRedoAction(QObject *parent) const
1170{
1171 KUndo2Action *result = new KUndo2Action(i18n("Redo %1"), i18nc("Default text for redo action", "Redo"), parent);
1172 result->setEnabled(canRedo());
1173 result->setPrefixedText(redoText());
1174 connect(this, SIGNAL(canRedoChanged(bool)),
1175 result, SLOT(setEnabled(bool)));
1176 connect(this, SIGNAL(redoTextChanged(QString)),
1177 result, SLOT(setPrefixedText(QString)));
1178 connect(result, SIGNAL(triggered()), this, SLOT(redo()));
1179 return result;
1180}
1181
1182#endif // QT_NO_ACTION
1183

Callers

nothing calls this directly

Calls 8

setPrefixedTextMethod · 0.80
setIconTextMethod · 0.80
redoFunction · 0.50
nameFunction · 0.50
setEnabledMethod · 0.45
isEmptyMethod · 0.45
setIconMethod · 0.45
addActionMethod · 0.45

Tested by

no test coverage detected