Opened 12 years ago

Closed 12 years ago

#7249 closed enhancement (fixed)

Enable page-zoom in mythbrowser

Reported by: anonymous Owned by: paulh
Priority: minor Milestone: 0.22
Component: Plugin - MythBrowser Version: head
Severity: medium Keywords: zoom
Cc: Ticket locked: no


The browser has been redesigned for the new QtWebKit? for 0.22, but is still using the old zoom functions that is based on font scaling. Unfortunately, many web-designers are obsessed with layout control which create problems with font-scaling when frames and container-objects have fixed size. Recent webkit versions support full-page-zoom which give a better result on most webpages. To enable page-zoom in mythbrowser require nothing more than a change of zoom method. Three instances of "setTextSizeMultiplier" in mythuiwebbrowser.cpp must be replaced with "setZoomFactor".

Attachments (1)

browserzoom.diff (757 bytes) - added by anonymous 12 years ago.
Patch to enable full-page-zoom in mythbrowser

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by anonymous

Attachment: browserzoom.diff added

Patch to enable full-page-zoom in mythbrowser

comment:1 Changed 12 years ago by paulh

Milestone: unknown0.22
Status: newassigned
Version: unknownhead

comment:2 Changed 12 years ago by paulh

Resolution: fixed
Status: assignedclosed

(In [22361]) In the web browser widget use setZoomFactor() rather than setTextSizeMultiplier() if qt >= 4.5.0.

setZoomFactor() changes the size of the entire page, not just the text, which has the advantage of keeping the page layout the same but is only available on Qt4.5.0 or later. Fixes #7249.

Note: See TracTickets for help on using tickets.