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

Issue 45 q components sort filter #939

Merged
merged 6 commits into from
May 8, 2023
Merged

Issue 45 q components sort filter #939

merged 6 commits into from
May 8, 2023

Conversation

Shark-y
Copy link
Contributor

@Shark-y Shark-y commented May 7, 2023

What are the issues this pull addresses (issue numbers / links)?

#45

Did you add tests to cover your changes (yes/no)?

No. This is a UI bug fix.

Did you update the documentation accordingly (yes/no)?

No. This is a UI bug fix.

Did you read the CONTRIBUTING document (yes/no)?

yes

Summary

The QComponents table now has a QSortFilterProxyModel (see screen shots), you can now sort the table and filter using the text box.

Details and comments

Good Morning,
A fix for #45

The QComponents table now has a QSortFilterProxyModel as shown in the screen shots, you can now sort the table and filter using the text box.

image
image

Issue #549
#549

The scaling for the GDS/Q3D/HFSS dialogs should be fixed now.
Wrapped the The components table in a QSortFilterProxyModel for sorting, filtering, plus

Added a textChanged event to the filter box to display only specific items.

#45
@Shark-y
Copy link
Contributor Author

Shark-y commented May 7, 2023

Moved this commit from my last PR #938 to a new one. Sorry for the mistake.

@priti-ashvin-shah-ibm
Copy link
Collaborator

To get linting to pass, save your python files with yapf formatting.

@Shark-y
Copy link
Contributor Author

Shark-y commented May 8, 2023

Good Morning,
Is there a way to rune the above tests from the local dev env? Thanks.

Run yapf on all files plus a few method updates in the filter/sort logic.
@priti-ashvin-shah-ibm
Copy link
Collaborator

You can make a draft pull request, which will run the github actions for tests.

@priti-ashvin-shah-ibm
Copy link
Collaborator

https://github.com/Qiskit/qiskit-metal/blob/main/.pylintrc

Look at line 17 and 18

If these are autogenerated, the files need to be added here.

Copy link
Collaborator

@priti-ashvin-shah-ibm priti-ashvin-shah-ibm left a comment

Choose a reason for hiding this comment

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

I tested this on my mac, without M1, and it looked good. Did you test the sort of Qcomponent table window on a windows OS?

@Shark-y
Copy link
Contributor Author

Shark-y commented May 8, 2023

Hi. Tested in Windows 10.

Copy link
Collaborator

@priti-ashvin-shah-ibm priti-ashvin-shah-ibm left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks for your contribution.

@priti-ashvin-shah-ibm priti-ashvin-shah-ibm merged commit c813968 into qiskit-community:main May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants