Skip to content
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

Replace QWebViews by native Qt widgets #325

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ptitjano
Copy link
Collaborator

@ptitjano ptitjano commented Mar 6, 2024

With this change, there is no need to use WebView and all the specific js/css resources have been removed: jquery and boostrap.

@github-actions github-actions bot added the UI User interface: forms, widgets... label Mar 6, 2024
@ptitjano ptitjano force-pushed the wip/ptitjano/remove-js branch from 09c0b41 to f032f35 Compare March 6, 2024 11:47
@ptitjano ptitjano marked this pull request as draft March 6, 2024 11:50
@ptitjano ptitjano self-assigned this Mar 6, 2024
@Guts
Copy link
Contributor

Guts commented Apr 8, 2024

@ptitjano any chance to see it merged before mid-April?

@ptitjano
Copy link
Collaborator Author

ptitjano commented Apr 9, 2024

@ptitjano any chance to see it merged before mid-April?

I will work on it next week.

@Guts Guts linked an issue May 22, 2024 that may be closed by this pull request
@AuBousquet AuBousquet force-pushed the wip/ptitjano/remove-js branch from 6e63380 to f032f35 Compare December 16, 2024 16:48
There is no need to use a webview to display a title and some
description. With this new logic, there are no two different widgets
to display some collection information:
- a label to display the description of the tab (empty state)
- a webview to display a collection description

The next commits will remove this remaining webview.
This replaces the previous solution based on a QWebView.
Its usage has been replaced by `get_collection` which does not need to
render html.
`get_resource_status` was only introduced while `get_html` was still
present with `get_collection`.
This was used when a QWebView was used to display a collection
information. This is not the case anymore.
This was used when a QwebView was used to display a collection
information. This is not the case anymore.
This makes it easier to understand and use.
@ptitjano ptitjano force-pushed the wip/ptitjano/remove-js branch from f032f35 to 97e1fcc Compare December 20, 2024 16:43
@ptitjano
Copy link
Collaborator Author

@ptitjano any chance to see it merged before mid-April?

I will work on it next week.

This comment has aged very badly.

@ptitjano
Copy link
Collaborator Author

I have just rebased this PR. This PR removed the usage of jquery.js but I don't know where or if it was used. I have that I have not broken anything.

From my point of view, it is ready. @Guts @AuBousquet Could you test it please?

@ptitjano ptitjano marked this pull request as ready for review December 20, 2024 16:47
@Guts Guts changed the title Draft: Replace QWebViews by native Qt widgets Replace QWebViews by native Qt widgets Dec 20, 2024
Copy link
Contributor

@Guts Guts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hurray! LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI User interface: forms, widgets...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImportError: cannot import name 'QtWebKitWidgets' from 'PyQt5'
2 participants