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

Suggestion: Change or add to QTextEdit / QTextDocument FindFlag option.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.3.4
    • Other
    • None

    Description

      Suggestion: Change or add to QTextEdit / QTextDocument FindFlag option. When using the find() function, any selection is ignored because the search starts after the selection and continues from the cursors current position.

      The docs say: “If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.” This excludes the selected part.

      The suggestion is to add a flag that includes this part.

      In addition to this another flag could be added, making the search start at the top of the document if it doesn’t find any matches on the way down. This way the complete document would be searched in one search.

      Update: Regarding the second suggestion about wrapping the search this is already trivial by calling find() twice, so we don't want to implement special flags for this.

      Attachments

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

        Activity

          People

            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            engvolds Morten Engvoldsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes