| 903 | */ |
| 904 | |
| 905 | void 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. |