[Webkit-unassigned] [Bug 24457] Extend Qtish API with functionality of finding all occurences of particular phrase and highlighting them.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Apr 11 12:48:10 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=24457
------- Comment #4 from faw217 at gmail.com 2009-04-11 12:48 PDT -------
Here is the revised version of my patch.
As suggested, I've reused the findText() function for multiple occurences
functionality. To clear highlight an empty string needs to be passed as
suggested as well.
If we are reusing the findText() method then I thought one should still be able
to combine all of them. But to make it happen we'd need one more flag which is
a FindForwards to distinguish whether we want to highlight only or highlight
and select the next occurence.
Another thing I considered is providing the number of highlighted matches. But
for now the findText() method returns a bool. It would be good to change it to
integer in the next major version of Qt. Then in highlight mode it would return
number of occurences and in select mode just 1 or 0.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list