Main Page Modules Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages
KPixmapProvider Class Reference
an abstract interface for looking up icons
More...
#include <kpixmapprovider.h>
Inheritance diagram for KPixmapProvider:
List of all members.
|
Public Methods |
| virtual QPixmap | pixmapFor (const QString &text, int size=0)=0 |
Detailed Description
an abstract interface for looking up icons
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>
Definition at line 37 of file kpixmapprovider.h.
Member Function Documentation
| virtual QPixmap KPixmapProvider::pixmapFor |
( |
const QString & |
text, |
|
|
int |
size = 0 |
|
) |
[pure virtual] |
|
|
|
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
Implemented in KURLPixmapProvider. |
The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:20 2003 for kdelibs by
1.2.18