• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KPixmapProvider Class Reference

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

#include <kpixmapprovider.h>

List of all members.

Public Member Functions

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

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

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

Definition at line 38 of file kpixmapprovider.h.


Constructor & Destructor Documentation

KPixmapProvider::~KPixmapProvider (  )  [virtual]

Definition at line 23 of file kpixmapprovider.cpp.


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 KIconLoader::StdSize.
Returns:
the pixmap for the arguments, or null if there is none
void KPixmapProvider::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

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:
  • kpixmapprovider.h
  • kpixmapprovider.cpp

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal