<table><tr><td style="">poboiko created this revision.<br />poboiko added reviewers: Frameworks, dfaure.<br />Herald added a project: Frameworks.<br />poboiko requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28968">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch ensures that everything related to headings is undoable<br />
with a single <tt style="background: #ebebeb; font-size: 13px;">Ctrl+Z</tt>. It also adds tests for the following use cases<br />
(ensuring those are undoable with a single <tt style="background: #ebebeb; font-size: 13px;">undo</tt> command):</p>
<ol class="remarkup-list">
<li class="remarkup-list-item">Make line a heading</li>
<li class="remarkup-list-item">Creating a newline after a heading</li>
<li class="remarkup-list-item">Merging a heading and non-heading line with <tt style="background: #ebebeb; font-size: 13px;">Delete</tt> key</li>
<li class="remarkup-list-item">The same, with <tt style="background: #ebebeb; font-size: 13px;">Backspace</tt> key</li>
</ol></div></div><br /><div><strong>TEST PLAN</strong><div><p><tt style="background: #ebebeb; font-size: 13px;">make && ctest</tt></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R310 KTextWidgets</div></div></div><br /><div><strong>BRANCH</strong><div><div>heading-undo-stack (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28968">https://phabricator.kde.org/D28968</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/krichtextedittest.cpp<br />
src/widgets/krichtextedit.cpp</div></div></div><br /><div><strong>To: </strong>poboiko, Frameworks, dfaure<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns<br /></div>