-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Initial Qt6 support #1046
Initial Qt6 support #1046
Conversation
@adamlamar Thank you very much for this draft. |
0d4cc8c
to
1fa6527
Compare
Some more updates on the context menu:
Here's a video with the new approach: new-context-menu.webm |
@mgautierfr I've completed the tasks above and AFAICT everything is working on both Qt5 and Qt6. Should be ready for a full review. Let me know if you have any questions. |
I had a brief look, here is a first set of remarks: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only reviewed the code (didn't try to build and test kiwix-desktop
with qt6).
@kelson42 I noticed those same warnings, but I believe they were preexisting. I actually have a branch where I fixed all the warnings and enabled @veloman-yunkan Thanks for the comments. I will work on improving the code portability in those places where there is some duplication. As for the commits, I typically squash before merge anyway. I can do that sooner so that the extra cruft isn't around. |
fb7ec2c
to
7237e7c
Compare
@kelson42 After looking into the Language filter issue I discovered that it was not constructing the QVariant correctly, even in Qt5. If I understand the intent, the default on first startup is to show you a filtered set of zim files that match your current system language+locale. For example mine is
Two things:
After my fixes, the language filter is shown on first start in both: @veloman-yunkan This should be ready for another review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having all your changes squashed into a single commit hurts more than it helps. Seeing issues described and resolved one (or a few) at a time is useful.
Please address the new comments as fixup commits so that I don't have to look through the full list of changes during the next (hopefully, last) iteration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@adamlamar Thank you very much for this PR. This is a very nice step forward. We might a few adjustments to do post PR, and might then contact you then. |
Fixes #1033
Fixes #365
Fixes #912
This PR implements compile support for Qt6. There are still some bugs and limitations, but the app compiles and runs. The changes mostly fall into these categories:
clazy
tool checksoperator+
)A few more things to fix before this is ready to merge:
...
icon) needs to be builtcreateStandardContextMenu()
- need to find the replacementprint
method no longer exists on a webview page - need to write up an approach to write a temporary PDF to disk, then print the PDF