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

Method setClean

libs/command/kundo2stack.cpp:905–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903*/
904
905void KUndo2QStack::setClean()
906{
907 if (!m_macro_stack.isEmpty()) {
908 qWarning("KUndo2QStack::setClean(): cannot set clean in the middle of a macro");
909 return;
910 }
911
912 setIndex(m_index, true);
913}
914
915/*!
916 If the stack is in the clean state, returns true; otherwise returns false.

Callers 4

testSetDirtyMethod · 0.45

Calls 2

setIndexFunction · 0.85
isEmptyMethod · 0.45

Tested by 3

testSetDirtyMethod · 0.36