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

KDEUI

Public Member Functions | Protected Member Functions | List of all members
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

Author
Carsten Pfeiffer pfeif.nosp@m.fer@.nosp@m.kde.o.nosp@m.rg 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
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
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 25 of file kpixmapprovider.cpp.


The documentation for this class was generated from the following files:
  • kpixmapprovider.h
  • kpixmapprovider.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal