KDEUI
KPixmapProvider Class Referenceabstract
#include <kpixmapprovider.h>
Public Member Functions | |
virtual | ~KPixmapProvider () |
virtual QPixmap | pixmapFor (const QString &text, int size=0)=0 |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
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
Definition at line 38 of file kpixmapprovider.h.
Constructor & Destructor Documentation
|
virtual |
Definition at line 23 of file kpixmapprovider.cpp.
Member Function Documentation
|
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 KIconLoader::StdSize.
- Returns
- the pixmap for the arguments, or null if there is none
|
protectedvirtual |
Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.
Unused in this class.
Definition at line 25 of file kpixmapprovider.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.