KDE 4.5 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KPixmapProvider Class Reference

from PyKDE4.kdeui import *

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


Methods

QPixmap pixmapFor (self, QString text, int size=0)

Method Documentation

QPixmap pixmapFor (  self,
QString  text,
int  size=0
)
Abstract method:
This method is abstract and can be overridden but not called directly.

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

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal