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

Skip overriden qt methods #153

Merged
merged 4 commits into from
Aug 8, 2024

Conversation

nyalldawson
Copy link
Contributor

@nyalldawson nyalldawson commented Aug 7, 2024

Avoids base PyQt methods showing QObject/QWidget methods for all subclasses, when there's no overrides or docstrings added in the derived PyQGIS class. This avoids cluttering up the class pages with a bunch of low-level methods.

Compare eg current docs for QgsMapLayerComboBox vs after:

image

After:

image

Fixes qgis/QGIS#52250

@DelazJ
Copy link
Collaborator

DelazJ commented Aug 7, 2024

Fixes qgis/QGIS#52250?

@nyalldawson
Copy link
Contributor Author

@DelazJ yes, correct

@DelazJ
Copy link
Collaborator

DelazJ commented Aug 8, 2024

OK. Added to the PR message to have it closed.

Avoids base PyQt methods showing QObject/QWidget methods for
all subclasses, when there's no overrides or docstrings added in
the derived PyQGIS class. This avoids cluttering up the class
pages with a bunch of low-level methods.
@nyalldawson nyalldawson merged commit 747fa49 into qgis:main Aug 8, 2024
4 checks passed
@nyalldawson nyalldawson deleted the skip_overriden_qt_methods branch August 8, 2024 21:38
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.

Ghost methods displayed for some classes in PyQGIS API doc
2 participants