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

Clean up old qt_compat aliases #358

Merged
merged 1 commit into from
May 27, 2021

Conversation

The-Compiler
Copy link
Member

Removes all aliases to class names, since those were only needed back when those
classes were in different modules between Qt 4 and Qt 5 (typically QtGui vs.
QtWidgets).

With Qt 4 now dropped, Qt 5 and Qt 6 are compatible enough to use the full path
to the classes inside our code instead, which makes the wrapper much simpler.

This also cleans up some tests doing "QtCore = qt_api.QtCore" or similar, since
there were a lot of duplicated but unused such aliases. Seems simpler to me to
just use the direct name, even if a bit longer.

Fixes #354

Removes all aliases to class names, since those were only needed back when those
classes were in different modules between Qt 4 and Qt 5 (typically QtGui vs.
QtWidgets).

With Qt 4 now dropped, Qt 5 and Qt 6 are compatible enough to use the full path
to the classes inside our code instead, which makes the wrapper much simpler.

This also cleans up some tests doing "QtCore = qt_api.QtCore" or similar, since
there were a lot of duplicated but unused such aliases. Seems simpler to me to
just use the direct name, even if a bit longer.
@The-Compiler
Copy link
Member Author

Wheee, thanks for all the quick reviews!

@The-Compiler The-Compiler merged commit c99b35a into pytest-dev:master May 27, 2021
@The-Compiler The-Compiler deleted the qt-compat-cleanup branch May 27, 2021 17:25
@nicoddemus
Copy link
Member

Wheee, thanks for all the quick reviews!

Sure thing, thanks for tackling all this and spearheading the next release. 😁

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.

More qt_compat cleanups
2 participants