Some additional editing related QWebPage WebActions would make Qt WebKit more useful as an embedded editor. * Clipboard: PasteAndMatchStyle * Formatting: RemoveFormat, ToggleStrikethrough, ToggleSubscript, and ToggleSuperscript * List Editing: InsertUnorderedList, InsertOrderedList, Indent, Outdent * Paragraph Justification: AlignCenter, AlignJustified, AlignLeft, AlignRight Also the selection / editing related ports of the qwebpage test harness could use some enhancement.
Created attachment 28829 [details] Adds editing related WebActions and improves selection / editing tests. Adds the following WebActions: + PasteAndMatchStyle - Paste content from the clipboard with current style. + RemoveFormat - Removes formatting and style. + ToggleStrikethrough - Toggle the formatting between strikethrough and normal style. + ToggleSubscript - Toggle the formatting between subscript and baseline. + ToggleSuperscript - Toggle the formatting between supercript and baseline. + InsertUnorderedList - Toggles the selection between an ordered list and a normal block. + InsertOrderedList - Toggles the selection between an ordered list and a normal block. + Indent - Increases the indentation of the currently selected format block by one increment. + Outdent - Decreases the indentation of the currently selected format block by one increment. + AlignCenter - Applies center alignment to content. + AlignJustified - Applies full justification to content. + AlignLeft - Applies left justification to content. + AlignRight - Applies right justification to content. Improved selection and editing tests.
Created attachment 28996 [details] Adds editing related WebActions and improves selection / editing tests. Adjusted to separate out the other test case fix, as per Simon's request.
Comment on attachment 28996 [details] Adds editing related WebActions and improves selection / editing tests. Thanks Erik :)
Landed in r42032