Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.3.4
-
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.