Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KURLPixmapProvider Class Reference

Resolves pixmaps for URLs. More...

#include <kurlpixmapprovider.h>

Inheritance diagram for KURLPixmapProvider:

KPixmapProvider List of all members.

Public Methods

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

Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

Resolves pixmaps for URLs.

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 );
 [...]
 

Author:
Carsten Pfeiffer <pfeiffer@kde.org>

Definition at line 42 of file kurlpixmapprovider.h.


Member Function Documentation

virtual QPixmap KURLPixmapProvider::pixmapFor const QString &    url,
int    size = 0
[virtual]
 

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

Implements KPixmapProvider.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:28 2003 for kdelibs by doxygen1.2.18