class KURLPixmapProvider

Resolves pixmaps for URLs. More...

Definition#include <kurlpixmapprovider.h>
InheritsKPixmapProvider (kdecore) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

Implementation of KPixmapProvider

Uses KMimeType::pixmapForURL() to resolve icons.

Instatiate this class and supply it to the desired class, e.g.


 KHistoryCombo *combo = new KHistoryCombo( this );
 combo->setPixmapProvider( new KURLPixmapProvider );
 [...]

QPixmap  pixmapFor ( const QString& url, int size = 0 )

pixmapFor

[virtual]

Returns a pixmap for url with size size Uses KMimeType::pixmapForURL()

Reimplemented from KPixmapProvider.