Bug 22946

Summary: [Patch] QWebPage/QWebView::selectAll to select all content
Product: WebKit Reporter: Urs Wolfer <uwolfer>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Enhancement CC: hausmann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 50049    
Attachments:
Description Flags
Patch to add QWebPage/QWebView::selectAll
hausmann: review-
Updated patch as suggested by Simon
none
Updated as discussed with Simon on IRC hausmann: review+

Description Urs Wolfer 2008-12-20 03:43:07 PST
The attached patch adds functions to select all content of a QWebPage. There is also a helper function in QWebView to select the content. API docs added as well (assuming it will go into Qt 4.6; though I see no problems to add it to 4.5 since the changes are really straight forward.)
Comment 1 Urs Wolfer 2008-12-20 03:47:52 PST
Created attachment 26167 [details]
Patch to add QWebPage/QWebView::selectAll
Comment 2 Simon Hausmann 2009-01-25 07:03:31 PST
Comment on attachment 26167 [details]
Patch to add QWebPage/QWebView::selectAll

I agree that the change is straight forward, and it looks correct. But I think this should be a function of QWebFrame only, not QWebPage or QWebView, because the selection is a property of a frame. In a HTML frameset with many frames each frame has its own selection.
Comment 3 Urs Wolfer 2009-01-25 08:19:49 PST
Created attachment 27018 [details]
Updated patch as suggested by Simon
Comment 4 Urs Wolfer 2009-01-25 09:17:14 PST
Created attachment 27020 [details]
Updated as discussed with Simon on IRC
Comment 5 Simon Hausmann 2009-01-25 09:28:42 PST
Comment on attachment 27020 [details]
Updated as discussed with Simon on IRC

r=me
Comment 6 Simon Hausmann 2009-01-25 09:29:33 PST
Landed in r40228