org.kde.koala

Class KPixmapProvider

public class KPixmapProvider extends Object implements QtSupport

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

UNKNOWN: an abstract interface for looking up icons.

Constructor Summary
protected KPixmapProvider(Class dummy)
Method Summary
QPixmappixmapFor(String text, int size)
You may subclass this and return a pixmap of size size for text.
QPixmappixmapFor(String text)

Constructor Detail

KPixmapProvider

protected KPixmapProvider(Class dummy)

Method Detail

pixmapFor

public QPixmap pixmapFor(String text, int size)
You may subclass this and return a pixmap of size size for text.

Parameters: text the text that is associated with the pixmap size the size of the icon in pixels, 0 for defaylt size. See KIcon.StdSize.

Returns: the pixmap for the arguments, or null if there is none

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

pixmapFor

public QPixmap pixmapFor(String text)