KDE3Support
#include <k3mimesourcefactory.h>
Public Member Functions | |
K3MimeSourceFactory (KIconLoader *loader=0) | |
virtual | ~K3MimeSourceFactory () |
virtual QString | makeAbsolute (const QString &abs_or_rel_name, const QString &context) const |
Public Member Functions inherited from Q3MimeSourceFactory | |
Q3MimeSourceFactory () | |
virtual | ~Q3MimeSourceFactory () |
void | addFilePath (const QString &p) |
const QMimeSource * | data (const QString &abs_or_rel_name, const QString &context) const |
virtual const QMimeSource * | data (const QString &abs_name) const |
virtual QStringList | filePath () const |
virtual void | setData (const QString &abs_name, QMimeSource *data) |
virtual void | setExtensionType (const QString &ext, const char *mimetype) |
virtual void | setFilePath (const QStringList &path) |
void | setFilePath (const QString &path) |
virtual void | setImage (const QString &abs_name, const QImage &image) |
virtual void | setPixmap (const QString &abs_name, const QPixmap &pixmap) |
virtual void | setText (const QString &abs_name, const QString &text) |
Static Public Member Functions | |
static void | install () |
Static Public Member Functions inherited from Q3MimeSourceFactory | |
void | addFactory (Q3MimeSourceFactory *f) |
Q3MimeSourceFactory * | defaultFactory () |
void | removeFactory (Q3MimeSourceFactory *f) |
void | setDefaultFactory (Q3MimeSourceFactory *factory) |
Q3MimeSourceFactory * | takeDefaultFactory () |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
An extension to QMimeSourceFactory that uses KIconLoader to find images.
Normally you don't have to instantiate this class at all, KApplication does that for you automagically and sets QMimeSourceFactory::setDefaultFactory.
Definition at line 42 of file k3mimesourcefactory.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
- Parameters
-
loader is the iconloader used to find images.
Definition at line 54 of file k3mimesourcefactory.cpp.
|
virtual |
Destructor.
Definition at line 60 of file k3mimesourcefactory.cpp.
Member Function Documentation
|
static |
Set up a K3MimeSourceFactory instance as the default mimesource factory.
Definition at line 36 of file k3mimesourcefactory.cpp.
|
virtual |
This function is maps an absolute or relative name for a resource to the absolute one.
To load an icon, prepend the category
name before the icon
name, in the style of <category>|<icon>.
Example:
- Parameters
-
abs_or_rel_name is the absolute or relative pathname. context is the path of the context object for the queried resource. Almost always empty.
Reimplemented from Q3MimeSourceFactory.
Definition at line 65 of file k3mimesourcefactory.cpp.
|
protectedvirtual |
Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.
Unused in this class.
Definition at line 106 of file k3mimesourcefactory.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:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.