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

Method undoText

libs/command/kundo2stack.cpp:1102–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1100*/
1101
1102QString KUndo2QStack::undoText() const
1103{
1104 if (!m_macro_stack.isEmpty()) {
1105 return QString();
1106 }
1107 if (m_index > 0 && m_command_list.count() >= m_index -1 && m_command_list.at(m_index - 1) != 0) {
1108 return m_command_list.at(m_index - 1)->actionText();
1109 }
1110 return QString();
1111}
1112
1113/*!
1114 Returns the text of the command which will be redone in the next call to redo().

Callers

nothing calls this directly

Calls 5

actionTextMethod · 0.80
QStringClass · 0.50
isEmptyMethod · 0.45
countMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected