stratified_packager.identity
Plugin identity derived at import.
Holds PLUGIN_SLUG, the slug of the plugin title. It lives here — not in
__about__ — because deriving it needs QGIS
(slugify() calls unaccent()),
whereas __about__ must stay stdlib-only so setuptools can read __version__ at
build time without QGIS. Importing neither stratified_packager.settings nor
params, this module is the package-wide home for the slug and keeps
those two free of a circular import.
Module Attributes
Slug of the plugin title; the |
Functions
Return the plugin icon as a multi-resolution |
- stratified_packager.identity.plugin_icon()[source]
Return the plugin icon as a multi-resolution
QIcon.Adds every PNG under
resources/images/pngso Qt selects the sharpest bitmap for each requested size instead of rasterizingicon.svgon the fly. The result is cached: the icon is immutable and safe to share across every caller.- Return type:
- Returns:
the plugin icon carrying all available PNG resolutions.