KIO
#include <kurlpixmapprovider.h>
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.
Resolves pixmaps for URLs
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
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 34 of file kurlpixmapprovider.cpp.
|
protectedvirtual |
Reimplemented from KPixmapProvider.
Definition at line 44 of file kurlpixmapprovider.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.