• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kio

KURLPixmapProvider Class Reference

Implementation of KPixmapProvider. More...

#include <kurlpixmapprovider.h>

Inheritance diagram for KURLPixmapProvider:

Inheritance graph
[legend]

List of all members.


Public Member Functions

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

Protected Member Functions

virtual void virtual_hook (int id, void *data)

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

Resolves pixmaps for URLs

Author:
Carsten Pfeiffer <pfeiffer@kde.org>

Definition at line 42 of file kurlpixmapprovider.h.


Member Function Documentation

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

Returns a pixmap for url with size size.

Uses KMimeType::pixmapForURL().

Parameters:
url the URL to fetch a pixmap for
size the size of the pixmap in pixels, or 0 for default.
Returns:
the resulting pixmap
See also:
KIcon::StdSizes

Definition at line 23 of file kurlpixmapprovider.cpp.

void KURLPixmapProvider::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Definition at line 32 of file kurlpixmapprovider.cpp.


The documentation for this class was generated from the following files:
  • kurlpixmapprovider.h
  • kurlpixmapprovider.cpp

kio

Skip menu "kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal