D28968: [KRichTextEdit] Make sure headings don't mess with undo stack

David Faure noreply at phabricator.kde.org
Sun Apr 19 10:23:56 BST 2020


dfaure requested changes to this revision.
dfaure added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> krichtextedit.cpp:572
>          setHeadingLevel(0);
> -    }
> -
> -    // If a line was merged with previous one, with different heading level,
> -    // the style should also be adjusted accordingly (i.e. merged)
> -    if ((event->key() == Qt::Key_Backspace) || (event->key() == Qt::Key_Delete)) {
> -        setHeadingLevel(textCursor().blockFormat().headingLevel());
> +        textCursor().endEditBlock();
>      }

Where is the corresponding beginEditBlock()?

REPOSITORY
  R310 KTextWidgets

REVISION DETAIL
  https://phabricator.kde.org/D28968

To: poboiko, #frameworks, dfaure
Cc: kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200419/9cc7d5ec/attachment.html>


More information about the Kde-frameworks-devel mailing list