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

KIO

Public Member Functions | Protected Member Functions | List of all members
KUrlPixmapProvider Class Reference

#include <kurlpixmapprovider.h>

Inheritance diagram for KUrlPixmapProvider:
Inheritance graph
[legend]

Public Member Functions

 KUrlPixmapProvider ()
 
 ~KUrlPixmapProvider ()
 
virtual QPixmap pixmapFor (const QString &url, int size=0)
 
- Public Member Functions inherited from KPixmapProvider
virtual ~KPixmapProvider ()
 

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 pfeif.nosp@m.fer@.nosp@m.kde.o.nosp@m.rg

Definition at line 42 of file kurlpixmapprovider.h.

Constructor & Destructor Documentation

KUrlPixmapProvider::KUrlPixmapProvider ( )

Creates a new url pixmap provider.

Definition at line 25 of file kurlpixmapprovider.cpp.

KUrlPixmapProvider::~KUrlPixmapProvider ( )

Destroys the url pixmap provider.

Definition at line 30 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
urlthe URL to fetch a pixmap for
sizethe size of the pixmap in pixels, or 0 for default.
Returns
the resulting pixmap
See also
KIconLoader::StdSizes

Implements KPixmapProvider.

Definition at line 34 of file kurlpixmapprovider.cpp.

void KUrlPixmapProvider::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Reimplemented from KPixmapProvider.

Definition at line 44 of file kurlpixmapprovider.cpp.


The documentation for this class was generated from the following files:
  • kurlpixmapprovider.h
  • kurlpixmapprovider.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • 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