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

KIO

KUrlPixmapProvider Class Reference

Implementation of KPixmapProvider. More...

#include <kurlpixmapprovider.h>

Inheritance diagram for KUrlPixmapProvider:
KPixmapProvider

List of all members.

Public Member Functions

 KUrlPixmapProvider ()
virtual QPixmap pixmapFor (const QString &url, int size=0)
 ~KUrlPixmapProvider ()

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Detailed Description

Implementation of KPixmapProvider.

Uses KMimeType::pixmapForURL() to resolve icons.

Instatiate this class and supply it to the desired class, e.g.

 KHistoryCombo *combo = new KHistoryCombo( this );
 combo->setPixmapProvider( new KUrlPixmapProvider );
 [...]

Resolves pixmaps for URLs

Author:
Carsten Pfeiffer <pfeiffer@kde.org>

Definition at line 43 of file kurlpixmapprovider.h.


Constructor & Destructor Documentation

KUrlPixmapProvider::KUrlPixmapProvider (  ) 

Creates a new url pixmap provider.

Definition at line 24 of file kurlpixmapprovider.cpp.

KUrlPixmapProvider::~KUrlPixmapProvider (  ) 

Destroys the url pixmap provider.

Definition at line 29 of file kurlpixmapprovider.cpp.


Member Function Documentation

QPixmap KUrlPixmapProvider::pixmapFor ( const QString &  url,
int  size = 0 
) [virtual]

Returns a pixmap for url with size size.

Uses KMimeType::pixmapForURL().

Parameters:
url the URL to fetch a pixmap for
size the size of the pixmap in pixels, or 0 for default.
Returns:
the resulting pixmap
See also:
KIconLoader::StdSizes

Implements KPixmapProvider.

Definition at line 33 of file kurlpixmapprovider.cpp.

void KUrlPixmapProvider::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Reimplemented from KPixmapProvider.

Definition at line 43 of file kurlpixmapprovider.cpp.


The documentation for this class was generated from the following files:
  • kurlpixmapprovider.h
  • kurlpixmapprovider.cpp

KIO

Skip menu "KIO"
  • Main Page
  • 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