c2f4dt.utils.icons
c2f4dt.utils.icons
¶
icon_path(name)
¶
Return absolute path to an icon in the project icons/
directory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Filename of the icon (e.g., '32x32_document-new.png'). |
required |
Returns:
Type | Description |
---|---|
str
|
Absolute path string. If not found, returns the original name, |
str
|
allowing Qt to fallback gracefully (useful in dev). |