# class KPixmapProvider

### abstract

Module | kdeui
Namespace |
Class | KPixmapProvider
Inherits |

A tiny abstract class with just one method: pixmapFor()

It will be called whenever an icon is searched for text.

Used e.g. by KHistoryCombo

Author Carsten Pfeiffer <pfeiffer@kde.org> an abstract interface for looking up icons

### methods

- pixmapFor (text, size)

  returns QPixmap
  pure virtual

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

  You may subclass this and return a pixmap of size size for text.

  text - the text that is associated with the pixmap

  size - the size of the icon in pixels, 0 for defaylt size. See KIconLoader.StdSize. Returns the pixmap for the arguments, or null if there is none

- virtual_hook (id, data)

  returns Nothing
  Not implemented

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

  Virtual hook, used to add new "virtual" functions while maintaining binary compatibility. Unused in this class.