-
Notifications
You must be signed in to change notification settings - Fork 251
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
added PySide6 shiboken6 support - Pt 2 #393
Conversation
In Qt6 the QAction class, which is used for creation toolbars and menus, has been moved from the QtWidgets to the QtGui module.
adding the QAction to the misplaced dict and removing it from the com…
joshochoa seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Qt.py
Outdated
"QtCore.Slot": "QtCore.Slot", | ||
"QtCore.QAbstractProxyModel": "QtCore.QAbstractProxyModel", | ||
"QtCore.QSortFilterProxyModel": "QtCore.QSortFilterProxyModel", | ||
"QtCore.QItemSelection": "QtCore.QItemSelection", |
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.
Some of these map back to themselves, can we remove these?
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.
Absolutely.
Is it fair to assume that anything mapping to itself is redundant?
I am noticing this mapping similarly exists in the _misplaced_members["PySide2"] dict as well
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.
Yes, I think so, I can't think of why these would exist. I expect it has been overlooked. The tests should reveal whether they were necessary, but feel free to trim as necessary.
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.
Did a pass on the whole script to remove redundant mappings.
Test passed 👍
Great news, thanks. So I think the reason tests don't run here is because of that CLA. It looks like you are both @zoshua and @joshochoa except @joshochoa is not a GitHub user. Would it be possible to squash your commits, such that they are all committed under the same user? From there, what's missing is tests actually running for PySide6. Currently, we only test whether the changes pass for Qt 4 and 5. For Qt 6, I expect we'll need to update the Dockerfile to include PySide6. |
for squashing
Spent all morning trying to figure out the best way to 'fix' the orphaned user situation but have not really come up with a straightforward/elegant solution just yet. Unfortunately there is no clear easy squash on my end that I could find in Github WebApp or Desktop. The current solve is looking like a serious rewriting of the commit history using something like git filter-repo or git filter-branch. This is definitely new territory for me, if you/anyone reading this has creative fixes I am happy to implement, lmk. |
This piqued my interest, and re-affirmed why I avoid merge commits like the plague in feature branches, they make updating the history of a feature branch branch harder. The merging in of the newer commits in mottosso:master made simple squashing difficult. I tried a few things but I had the most success with generating a patch file based on this. It will squash all commits into a single new commit on top of the latest commit in mottosso:master. I recommend making these changes on your working copies master branch so you don't need to create a new pull request.
Warning:
|
@MHendricks Thank you so much for this write up! I totally goofed on not working from a feature branch in the first place. I will run through the process asap and let you know if I hit any snags. |
Eek, complicated. Since we are only interested in 1 file, I would recommend:
Now you've "squashed" it and we can PR and merge that instead. |
Closing this one out as we moved the submission to PR 394 Thanks to everyone for the contribution and guidance. |
Now passing new testing framework!