New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addon Manager: Switch to using QWebEngineView for README #5458
Addon Manager: Switch to using QWebEngineView for README #5458
Conversation
Not sure how to fix the conflict... Can you have a look @chennes ? I'd like to test this! |
062b23a
to
57f9364
Compare
@yorikvanhavre Rebased, conflict should be gone now. Thanks for testing! |
"Rock 'n roll" |
That predated me, but I felt like I had to leave it in 😄 |
57f9364
to
8eeb0f9
Compare
Good idea -- I've added 1em of padding inside the whole body in the cases where we are extracting the article element and reparenting it. This appears to work well for the four known git hosts. |
Rather than manually parsing the output from the repo's host, the Addon Manager now uses an embedded QWebEngineView to display the README data. This makes the display more repo-location agnostic (rather than trying to parse the specific code from GitHub, Gitlab, etc.). Special handling of known hosts is still provided to improve the display of the page, but it is not required. Clicking a link on the page still loads in a new system browser window, with the exception of links to the FreeCAD wiki, which are loaded in the same browser. This is expected to be used primarily to access traslated pages for Macros, so no advanced web-browsing features are displayed (e.g. back buttons, history access, etc.).
8eeb0f9
to
e15ac44
Compare
Take Two -- some different design decisions this time. The basic idea is to use QWebEngineView (which is basically a fork of Chromium) to display the README and Macro Wiki Page content, since that content is really web-based and makes sense in a web browser. However, it is not intended as a general purpose web browser: almost all links you click on will ask the system to open its default web browser, the same way the original version did. The only exception is FreeCAD wiki pages, which this web view will render.