-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Improve part list #519
Improve part list #519
Conversation
I guess I sucessfully migrated everything to the new list 🥳 As I said, a heavy change, so please test and let me know if you find errors! I realized that we have some minor issues which are not introduced by this PR, but I guess I'll fix them later. |
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.
Looks like we've got a few hardcoded column indexes still at the end there but those are legacy. Overall PR looks clean, no complaints, and is moving in a good direction.
@@ -405,91 +409,6 @@ def __init__(self, parent, kicad_provider=KicadProvider()): | |||
rotation.SetSortable(True) | |||
side.SetSortable(True) | |||
|
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.
ahh k, could always rebase and fixup the previous change with this one if that makes sense with your git-fu
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.
No idea what you mean by that 😅
This PR will replace the ListCtrl used for the main parts list with a DataViewCtrl and a PyDataViewModel.
We will be able to sort the list without having to query the database nd re-populate the list every time.