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

Method command

libs/command/kundo2stack.cpp:1274–1279  ·  view source on GitHub ↗

! \since 4.4 Returns a const pointer to the command at \a index. This function returns a const pointer, because modifying a command, once it has been pushed onto the stack and executed, almost always causes corruption of the state of the document, if the command is later undone or redone. \sa KUndo2Command::child() */

Source from the content-addressed store, hash-verified

1272 \sa KUndo2Command::child()
1273*/
1274const KUndo2Command *KUndo2QStack::command(int index) const
1275{
1276 if (index < 0 || index >= m_command_list.count())
1277 return 0;
1278 return m_command_list.at(index);
1279}
1280
1281/*!
1282 Returns the text of the command at index \a idx.

Callers 10

presentCommandMethod · 0.80
testExcludeFromMergeMethod · 0.80
testMergeTimeoutMethod · 0.80
testGroupSeparationMethod · 0.80
testMaxGroupDurationMethod · 0.80
presentCommandMethod · 0.80
dataMethod · 0.80
addImageMethod · 0.80

Calls 2

countMethod · 0.45
atMethod · 0.45

Tested by 6

testExcludeFromMergeMethod · 0.64
testMergeTimeoutMethod · 0.64
testGroupSeparationMethod · 0.64
testMaxGroupDurationMethod · 0.64