# class KUrlPixmapProvider

###

Module | kio
Namespace |
Class | KUrlPixmapProvider
Inherits | KPixmapProvider

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>

### methods

- KUrlPixmapProvider ( )

  returns ctor

  Creates a new url pixmap provider.

- pixmapFor (url, size)

  returns QPixmap

  Argument | Type | Default
  --- | --- | ---
  url | QString |
  size | int | 0

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

  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 KIconLoader.StdSizes

- virtual_hook (id, data)

  returns Nothing
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  id | int |
  data | void |