Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-243

Selections are not preserved when undoing a cut()/delete()

    XMLWordPrintable

Details

    Description

      If you undo a cut() the selection is not preserved. Editors on Windows and Mac preserve the selection. See autotest QTextEdit::copyAvailable case 7.

      If you undo a cut() the selection should be in the state before the cut and a copyAvailable signal should be emitted. With the current QTextEdit the selection is not set back after the undo and no signal is emitted.

      Another case where this does not work, is when selecting some text, entering some characters (selected text is removed) and undoing again. The original selection is lost.

      See change: 238164

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shausman Simon Hausmann
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes