• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 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::~KPixmapProvider ( )
virtual

Definition at line 23 of file kpixmapprovider.cpp.

Member Function Documentation

◆ pixmapFor()

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

◆ virtual_hook()

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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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