KPixmapProvider

KPixmapProvider Class Referenceabstract

#include <KPixmapProvider>

Public Member Functions

virtual QPixmap pixmapFor (const QString &text, int size=0)=0
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 

Detailed Description

An abstract interface for looking up icons.

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

Used e.g. by KHistoryComboBox

Author
Carsten Pfeiffer pfeif[email protected][email protected][email protected]kde.o[email protected]rg
Deprecated:
Since 5.66, use a std::function that takes a QString and returns a QIcon/QPixmap

Definition at line 28 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
textthe text that is associated with the pixmap
sizethe 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
Deprecated:
Since 5.66, use a std::function that takes a QString and returns a QIcon/QPixmap.
void KPixmapProvider::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.

Unused in this class.

Definition at line 15 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-2020 The KDE developers.
Generated on Sat Sep 19 2020 22:52:02 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.