|
|
An extension to QMimeSourceFactory that uses KIconLoader to find images.
Normally you don't have to instantiate this class at all, KApplication does that for you automagically and sets QMimeSourceFactory::setDefaultFactory.
| |
Constructor.
Parameters:
| loader | is the iconloader used to find images. |
| ~ |
[virtual]
Destructor.
| QString |
[const virtual]
This function is maps an absolute or relative name for a resource to the absolute one.
To load an icon, prepend the category name before the icon name, in the style
of <category>|<icon>.
Example:
"<img src=\"user|ksysv_start\"/>", "<img src="\desktop|trash\">", ...
Parameters:
| abs_or_rel_name | is the absolute or relative pathname. |
| context | is the path of the context object for the queried resource. Almost always empty. |
Reimplemented from QMimeSourceFactory