.TH "KIconLoader" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KIconLoader \- Iconloader for \fBKDE\fP.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kiconloader.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKIconLoader\fP (const \fBQString\fP &appname=QString::null, \fBKStandardDirs\fP *dirs=0)"
.br
.ti -1c
.RI "\fB~KIconLoader\fP ()"
.br
.ti -1c
.RI "void \fBaddAppDir\fP (const \fBQString\fP &appname)"
.br
.ti -1c
.RI "\fBQPixmap\fP \fBloadIcon\fP (const \fBQString\fP &name, \fBKIcon::Group\fP group, int size=0, int state=KIcon::DefaultState, \fBQString\fP *path_store=0L, bool canReturnNull=false) const "
.br
.ti -1c
.RI "\fBQIconSet\fP \fBloadIconSet\fP (const \fBQString\fP &name, \fBKIcon::Group\fP group, int size, bool canReturnNull)"
.br
.ti -1c
.RI "\fBQIconSet\fP \fBloadIconSet\fP (const \fBQString\fP &name, \fBKIcon::Group\fP group, int size=0)"
.br
.ti -1c
.RI "\fBQString\fP \fBiconPath\fP (const \fBQString\fP &name, int group_or_size, bool canReturnNull=false) const "
.br
.ti -1c
.RI "\fBQMovie\fP \fBloadMovie\fP (const \fBQString\fP &name, \fBKIcon::Group\fP group, int size=0) const "
.br
.ti -1c
.RI "\fBQString\fP \fBmoviePath\fP (const \fBQString\fP &name, \fBKIcon::Group\fP group, int size=0) const "
.br
.ti -1c
.RI "\fBQStringList\fP \fBloadAnimated\fP (const \fBQString\fP &name, \fBKIcon::Group\fP group, int size=0) const "
.br
.ti -1c
.RI "\fBQStringList\fP \fBqueryIcons\fP (int group_or_size, \fBKIcon::Context\fP context=KIcon::Any) const "
.br
.ti -1c
.RI "\fBQStringList\fP \fBqueryIconsByContext\fP (int group_or_size, \fBKIcon::Context\fP context=KIcon::Any) const "
.br
.ti -1c
.RI "\fBQStringList\fP \fBqueryIconsByDir\fP (const \fBQString\fP &iconsDir) const "
.br
.ti -1c
.RI "int \fBcurrentSize\fP (\fBKIcon::Group\fP group) const "
.br
.ti -1c
.RI "\fBKIconTheme\fP * \fBtheme\fP () const "
.br
.ti -1c
.RI "\fBKIconEffect\fP * \fBiconEffect\fP () const "
.br
.ti -1c
.RI "void \fBreconfigure\fP (const \fBQString\fP &_appname, \fBKStandardDirs\fP *_dirs)"
.br
.ti -1c
.RI "bool \fBalphaBlending\fP (\fBKIcon::Group\fP group) const "
.br
.ti -1c
.RI "void \fBaddExtraDesktopThemes\fP ()"
.br
.ti -1c
.RI "bool \fBextraDesktopThemesAdded\fP () const "
.br
.ti -1c
.RI "void \fBenableDelayedIconSetLoading\fP (bool enable)"
.br
.ti -1c
.RI "bool \fBisDelayedIconSetLoadingEnabled\fP () const "
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static \fBQPixmap\fP \fBunknown\fP ()"
.br
.in -1c
.SS "Related Functions"
(Note that these are not member functions.) 
.in +1c
.ti -1c
.RI "KDECORE_EXPORT \fBQPixmap\fP \fBDesktopIcon\fP (const \fBQString\fP &name, int size=0, int state=KIcon::DefaultState, \fBKInstance\fP *instance=KGlobal::instance())"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQPixmap\fP \fBDesktopIcon\fP (const \fBQString\fP &name, \fBKInstance\fP *instance)"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQIconSet\fP \fBDesktopIconSet\fP (const \fBQString\fP &name, int size=0, \fBKInstance\fP *instance=KGlobal::instance())"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQPixmap\fP \fBBarIcon\fP (const \fBQString\fP &name, int size=0, int state=KIcon::DefaultState, \fBKInstance\fP *instance=KGlobal::instance())"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQPixmap\fP \fBBarIcon\fP (const \fBQString\fP &name, \fBKInstance\fP *instance)"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQIconSet\fP \fBBarIconSet\fP (const \fBQString\fP &name, int size=0, \fBKInstance\fP *instance=KGlobal::instance())"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQPixmap\fP \fBSmallIcon\fP (const \fBQString\fP &name, int size=0, int state=KIcon::DefaultState, \fBKInstance\fP *instance=KGlobal::instance())"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQPixmap\fP \fBSmallIcon\fP (const \fBQString\fP &name, \fBKInstance\fP *instance)"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQIconSet\fP \fBSmallIconSet\fP (const \fBQString\fP &name, int size=0, \fBKInstance\fP *instance=KGlobal::instance())"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQPixmap\fP \fBMainBarIcon\fP (const \fBQString\fP &name, int size=0, int state=KIcon::DefaultState, \fBKInstance\fP *instance=KGlobal::instance())"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQPixmap\fP \fBMainBarIcon\fP (const \fBQString\fP &name, \fBKInstance\fP *instance)"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQIconSet\fP \fBMainBarIconSet\fP (const \fBQString\fP &name, int size=0, \fBKInstance\fP *instance=KGlobal::instance())"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQPixmap\fP \fBUserIcon\fP (const \fBQString\fP &name, int state=KIcon::DefaultState, \fBKInstance\fP *instance=KGlobal::instance())"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQPixmap\fP \fBUserIcon\fP (const \fBQString\fP &name, \fBKInstance\fP *instance)"
.br
.ti -1c
.RI "KDECORE_EXPORT \fBQIconSet\fP \fBUserIconSet\fP (const \fBQString\fP &name, \fBKInstance\fP *instance=KGlobal::instance())"
.br
.ti -1c
.RI "KDECORE_EXPORT int \fBIconSize\fP (\fBKIcon::Group\fP group, \fBKInstance\fP *instance=KGlobal::instance())"
.br
.in -1c
.SH "Detailed Description"
.PP 
Iconloader for \fBKDE\fP. 

KIconLoader will load the current icon theme and all its base themes. Icons will be searched in any of these themes. Additionally, it caches icons and applies effects according the the user's preferences.
.PP
In \fBKDE\fP, it is encouraged to load icons by 'Group'. An icon group is a location on the screen where icons are being used. Standard groups are: Desktop, Toolbar, MainToolbar, Small and Panel. Each group has some centrally configured properties bound to it, including the icon size and effects. This makes it possible to offer a consistent icon look in all \fBKDE\fP applications.
.PP
The standard groups are defined below.
.PP
.PD 0
.IP "\(bu" 2
\fBKIcon::Desktop\fP: Icons in the iconview of konqueror, kdesktop and similar apps. 
.IP "\(bu" 2
\fBKIcon::Toolbar\fP: Icons in toolbars. 
.IP "\(bu" 2
\fBKIcon::MainToolbar\fP: Icons in the main toolbars. 
.IP "\(bu" 2
\fBKIcon::Small\fP: Various small (typical 16x16) places: titlebars, listviews and menu entries. 
.IP "\(bu" 2
\fBKIcon::Panel\fP: Icons in kicker's panel
.PP
The icons are stored on disk in an icon theme or in a standalone directory. The icon theme directories contain multiple sizes and/or depths for the same icon. The iconloader will load the correct one based on the icon group and the current theme. Icon themes are stored globally in share/icons, or, application specific in share/apps/$appdir/icons.
.PP
The standalone directories contain just one version of an icon. The directories that are searched are: $appdir/pics and $appdir/toolbar. Icons in these directories can be loaded by using the special group 'User'. 
.PP
Definition at line 77 of file kiconloader.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KIconLoader::KIconLoader (const \fBQString\fP & appname = \fCQString::null\fP, \fBKStandardDirs\fP * dirs = \fC0\fP)"
.PP
Constructs an iconloader. 
.PP
\fBParameters:\fP
.RS 4
\fIappname\fP Add the data directories of this application to the icon search path for the 'User' group. The default argument adds the directories of the current application. 
.br
\fIdirs\fP the \fBKStandardDirs\fP object to use. If null the global one is used
.RE
.PP
Usually, you use the default iconloader, which can be accessed via \fBKGlobal::iconLoader()\fP, so you hardly ever have to create an iconloader object yourself. That one is the current KInstance's (typically KApplication's) iconloader. 
.PP
\fBSee also:\fP
.RS 4
\fBKGlobal::iconLoader()\fP 
.PP
\fBKInstance::iconLoader()\fP 
.RE
.PP

.PP
Definition at line 160 of file kiconloader.cpp.
.PP
References QValueList::append(), QValueList::begin(), QValueList::end(), and QValueList::remove().
.SS "KIconLoader::~\fBKIconLoader\fP ()"
.PP
Cleanup. 
.PP
Definition at line 276 of file kiconloader.cpp.
.PP
References QValueList::begin(), and QValueList::end().
.SH "Member Function Documentation"
.PP 
.SS "void KIconLoader::addAppDir (const \fBQString\fP & appname)"
.PP
Adds \fCappname\fP to the list of application specific directories. 
.PP
\fBParameters:\fP
.RS 4
\fIappname\fP The application name. 
.RE
.PP

.PP
Definition at line 308 of file kiconloader.cpp.
.SS "\fBQPixmap\fP KIconLoader::loadIcon (const \fBQString\fP & name, \fBKIcon::Group\fP group, int size = \fC0\fP, int state = \fCKIcon::DefaultState\fP, \fBQString\fP * path_store = \fC0L\fP, bool canReturnNull = \fCfalse\fP) const"
.PP
Loads an icon. 
.PP
It will try very hard to find an icon which is suitable. If no exact match is found, a close match is searched. If neither an exact nor a close match is found, a null pixmap or the 'unknown' pixmap is returned, depending on the value of the \fCcanReturnNull\fP parameter.
.PP
\fBParameters:\fP
.RS 4
\fIname\fP The name of the icon, without extension. 
.br
\fIgroup\fP The icon group. This will specify the size of and effects to be applied to the icon. 
.br
\fIsize\fP If nonzero, this overrides the size specified by \fCgroup\fP. See \fBKIcon::StdSizes\fP. 
.br
\fIstate\fP The icon state: \fCDefaultState\fP, \fCActiveState\fP or \fCDisabledState\fP. Depending on the user's preferences, the iconloader may apply a visual effect to hint about its state. 
.br
\fIpath_store\fP If not null, the path of the icon is stored here. 
.br
\fIcanReturnNull\fP Can return a null pixmap? If false, the 'unknown' pixmap is returned when no appropriate icon has been found. 
.RE
.PP
\fBReturns:\fP
.RS 4
the \fBQPixmap\fP. Can be null when not found, depending on \fCcanReturnNull\fP. 
.RE
.PP

.PP
Definition at line 594 of file kiconloader.cpp.
.PP
References KIcon::context, QPixmap::convertFromImage(), QImage::copy(), QPixmap::createHeuristicMask(), endl(), QPixmapCache::find(), QString::fromLatin1(), QPixmap::height(), iconPath(), QPixmapCache::insert(), QString::isEmpty(), QImage::isNull(), QPixmap::isNull(), KIcon::isValid(), QString::latin1(), KIconTheme::linkOverlay(), KIconTheme::lockOverlay(), QPixmap::mask(), QString::number(), KIconEffect::overlay(), KIcon::path, QString::right(), QImage::scanLine(), QPixmap::setMask(), KIconTheme::shareOverlay(), QImage::smoothScale(), QString::startsWith(), KGlobal::staticQString(), theme(), KIcon::threshold, KIcon::type, QString::upper(), QPixmap::width(), QImage::width(), and KIconTheme::zipOverlay().
.PP
Referenced by BarIcon(), DesktopIcon(), loadIconSet(), MainBarIcon(), SmallIcon(), and UserIcon().
.SS "\fBQIconSet\fP KIconLoader::loadIconSet (const \fBQString\fP & name, \fBKIcon::Group\fP group, int size, bool canReturnNull)"
.PP
Creates an icon set, that will do on-demand loading of the icon. 
.PP
Loading itself is done by calling loadIcon .
.PP
\fBParameters:\fP
.RS 4
\fIname\fP The name of the icon, without extension. 
.br
\fIgroup\fP The icon group. This will specify the size of and effects to be applied to the icon. 
.br
\fIsize\fP If nonzero, this overrides the size specified by \fCgroup\fP. See \fBKIcon::StdSizes\fP. 
.br
\fIcanReturnNull\fP Can return a null iconset? If false, iconset containing the 'unknown' pixmap is returned when no appropriate icon has been found. 
.RE
.PP
\fBReturns:\fP
.RS 4
the icon set. Can be null when not found, depending on \fCcanReturnNull\fP. 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 1163 of file kiconloader.cpp.
.PP
References endl(), QIconSet::installIconFactory(), QPixmap::isNull(), and loadIcon().
.PP
Referenced by BarIconSet(), DesktopIconSet(), loadIconSet(), MainBarIconSet(), SmallIconSet(), and UserIconSet().
.SS "\fBQIconSet\fP KIconLoader::loadIconSet (const \fBQString\fP & name, \fBKIcon::Group\fP group, int size = \fC0\fP)"
.PP
Creates an icon set, that will do on-demand loading of the icon. 
.PP
Loading itself is done by calling loadIcon .
.PP
\fBParameters:\fP
.RS 4
\fIname\fP The name of the icon, without extension. 
.br
\fIgroup\fP The icon group. This will specify the size of and effects to be applied to the icon. 
.br
\fIsize\fP If nonzero, this overrides the size specified by \fCgroup\fP. See \fBKIcon::StdSizes\fP. 
.RE
.PP
\fBReturns:\fP
.RS 4
the icon set. Can be null when not found 
.RE
.PP

.PP
Definition at line 1141 of file kiconloader.cpp.
.PP
References loadIconSet().
.SS "\fBQString\fP KIconLoader::iconPath (const \fBQString\fP & name, int group_or_size, bool canReturnNull = \fCfalse\fP) const"
.PP
Returns the path of an icon. 
.PP
\fBParameters:\fP
.RS 4
\fIname\fP The name of the icon, without extension. If an absolute path is supplied for this parameter, iconPath will return it directly. 
.br
\fIgroup_or_size\fP If positive, search icons whose size is specified by the icon group \fCgroup_or_size\fP. If negative, search icons whose size is - \fCgroup_or_size\fP. See \fBKIcon::Group\fP and \fBKIcon::StdSizes\fP 
.br
\fIcanReturnNull\fP Can return a null string? If not, a path to the 'unknown' icon will be returned. 
.RE
.PP
\fBReturns:\fP
.RS 4
the path of an icon, can be null or the 'unknown' icon when not found, depending on \fCcanReturnNull\fP. 
.RE
.PP

.PP
Definition at line 527 of file kiconloader.cpp.
.PP
References endl(), QString::isEmpty(), KIcon::isValid(), KIcon::path, and KGlobal::staticQString().
.PP
Referenced by loadIcon(), loadMovie(), and unknown().
.SS "\fBQMovie\fP KIconLoader::loadMovie (const \fBQString\fP & name, \fBKIcon::Group\fP group, int size = \fC0\fP) const"
.PP
Loads an animated icon. 
.PP
\fBParameters:\fP
.RS 4
\fIname\fP The name of the icon. 
.br
\fIgroup\fP The icon group. See \fBloadIcon()\fP. 
.br
\fIsize\fP Override the default size for \fCgroup\fP. See \fBKIcon::StdSizes\fP. 
.RE
.PP
\fBReturns:\fP
.RS 4
A \fBQMovie\fP object. Can be null if not found. 
.RE
.PP

.PP
Definition at line 900 of file kiconloader.cpp.
.PP
References QString::findRev(), iconPath(), QString::isEmpty(), QString::left(), and moviePath().
.SS "\fBQString\fP KIconLoader::moviePath (const \fBQString\fP & name, \fBKIcon::Group\fP group, int size = \fC0\fP) const"
.PP
Returns the path to an animated icon. 
.PP
\fBParameters:\fP
.RS 4
\fIname\fP The name of the icon. 
.br
\fIgroup\fP The icon group. See \fBloadIcon()\fP. 
.br
\fIsize\fP Override the default size for \fCgroup\fP. See \fBKIcon::StdSizes\fP. 
.RE
.PP
\fBReturns:\fP
.RS 4
the full path to the movie, ready to be passed to QMovie's constructor. Empty string if not found. 
.RE
.PP

.PP
Definition at line 912 of file kiconloader.cpp.
.PP
References endl(), KIcon::isValid(), and KIcon::path.
.PP
Referenced by loadMovie().
.SS "\fBQStringList\fP KIconLoader::loadAnimated (const \fBQString\fP & name, \fBKIcon::Group\fP group, int size = \fC0\fP) const"
.PP
Loads an animated icon as a series of still frames. 
.PP
If you want to load a .mng animation as \fBQMovie\fP instead, please use \fBloadMovie()\fP instead. 
.PP
\fBParameters:\fP
.RS 4
\fIname\fP The name of the icon. 
.br
\fIgroup\fP The icon group. See \fBloadIcon()\fP. 
.br
\fIsize\fP Override the default size for \fCgroup\fP. See \fBKIcon::StdSizes\fP. 
.RE
.PP
\fBReturns:\fP
.RS 4
A \fBQStringList\fP containing the absolute path of all the frames making up the animation. 
.RE
.PP

.PP
Definition at line 964 of file kiconloader.cpp.
.PP
References endl(), QString::isEmpty(), KIcon::isValid(), QString::left(), QString::length(), KIcon::path, and QStringList::sort().
.SS "\fBQStringList\fP KIconLoader::queryIcons (int group_or_size, \fBKIcon::Context\fP context = \fCKIcon::Any\fP) const"
.PP
Queries all available icons for a specific group, having a specific context. 
.PP
\fBParameters:\fP
.RS 4
\fIgroup_or_size\fP If positive, search icons whose size is specified by the icon group \fCgroup_or_size\fP. If negative, search icons whose size is - \fCgroup_or_size\fP. See \fBKIcon::Group\fP and \fBKIcon::StdSizes\fP 
.br
\fIcontext\fP The icon context. 
.RE
.PP
\fBReturns:\fP
.RS 4
a list of all icons 
.RE
.PP

.PP
Definition at line 1085 of file kiconloader.cpp.
.PP
References endl(), and QString::mid().
.SS "\fBQStringList\fP KIconLoader::queryIconsByContext (int group_or_size, \fBKIcon::Context\fP context = \fCKIcon::Any\fP) const"
.PP
Queries all available icons for a specific context. 
.PP
\fBParameters:\fP
.RS 4
\fIgroup_or_size\fP The icon preferred group or size. If available at this group or size, those icons will be returned, in other case, icons of undefined size will be returned. Positive numbers are groups, negative numbers are negated sizes. See \fBKIcon::Group\fP and \fBKIcon::StdSizes\fP 
.br
\fIcontext\fP The icon context. 
.RE
.PP
\fBReturns:\fP
.RS 4
A \fBQStringList\fP containing the icon names available for that context 
.RE
.PP

.PP
Definition at line 1044 of file kiconloader.cpp.
.PP
References endl(), and QString::mid().
.SS "\fBQStringList\fP KIconLoader::queryIconsByDir (const \fBQString\fP & iconsDir) const"
.PP
Returns a list of all icons (*.png or *.xpm extension) in the given directory. 
.PP
\fBParameters:\fP
.RS 4
\fIiconsDir\fP the directory to search in 
.RE
.PP
\fBReturns:\fP
.RS 4
A \fBQStringList\fP containing the icon paths 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 1033 of file kiconloader.cpp.
.PP
References QDir::entryList().
.SS "int KIconLoader::currentSize (\fBKIcon::Group\fP group) const"
.PP
Returns the current size of the group. 
.PP
\fBParameters:\fP
.RS 4
\fIgroup\fP the group to check. 
.RE
.PP
\fBReturns:\fP
.RS 4
the current size for an icon group. 
.RE
.PP

.PP
Definition at line 1021 of file kiconloader.cpp.
.PP
References endl().
.PP
Referenced by IconSize().
.SS "\fBKIconTheme\fP * KIconLoader::theme () const"
.PP
Returns a pointer to the current theme. 
.PP
Can be used to query available and default sizes for groups. 
.PP
\fBReturns:\fP
.RS 4
a pointer to the current theme. 0 if no theme set. 
.RE
.PP

.PP
Definition at line 1015 of file kiconloader.cpp.
.PP
Referenced by loadIcon().
.SS "\fBKIconEffect\fP * KIconLoader::iconEffect () const"
.PP
Returns a pointer to the \fBKIconEffect\fP object used by the icon loader. 
.PP
\fBReturns:\fP
.RS 4
the \fBKIconEffect\fP. 
.RE
.PP

.PP
Definition at line 1124 of file kiconloader.cpp.
.SS "void KIconLoader::reconfigure (const \fBQString\fP & _appname, \fBKStandardDirs\fP * _dirs)"
.PP
Called by \fBKInstance::newIconLoader\fP to reconfigure the icon loader. 
.PP
\fBParameters:\fP
.RS 4
\fI_appname\fP the new application name 
.br
\fI_dirs\fP the new standard directories. If 0, the directories from \fBKGlobal\fP will be taken. 
.RE
.PP

.PP
Definition at line 181 of file kiconloader.cpp.
.PP
Referenced by KInstance::newIconLoader().
.SS "\fBQPixmap\fP KIconLoader::unknown ()\fC [static]\fP"
.PP
Returns the unknown icon. 
.PP
An icon that is used when no other icon can be found. 
.PP
\fBReturns:\fP
.RS 4
the unknown pixmap 
.RE
.PP

.PP
Definition at line 1374 of file kiconloader.cpp.
.PP
References endl(), KGlobal::iconLoader(), iconPath(), QPixmapCache::insert(), QString::isEmpty(), QPixmap::load(), and QPixmap::resize().
.SS "bool KIconLoader::alphaBlending (\fBKIcon::Group\fP group) const"
.PP
Checks whether the user wants to blend the icons with the background using the alpha channel information for a given group. 
.PP
\fBParameters:\fP
.RS 4
\fIgroup\fP the group to check 
.RE
.PP
\fBReturns:\fP
.RS 4
true if alpha blending is desired 
.RE
.PP
\fBDeprecated\fP
.RS 4
.RE
.PP

.PP
Definition at line 1129 of file kiconloader.cpp.
.PP
References endl().
.SS "void KIconLoader::addExtraDesktopThemes ()"
.PP
Adds all the default themes from other desktops at the end of the list of icon themes. 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 361 of file kiconloader.cpp.
.PP
References QDir::dirName(), KGlobal::dirs(), QDir::entryList(), QDir::exists(), and KStandardDirs::resourceDirs().
.SS "bool KIconLoader::extraDesktopThemesAdded () const"
.PP
Returns if the default icon themes of other desktops have been added to the list of icon themes where icons are searched. 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 412 of file kiconloader.cpp.
.SS "void KIconLoader::enableDelayedIconSetLoading (bool enable)"
.PP
Enables on-demand icon loading for QIconSets using \fBQIconFactory\fP. 
.PP
Icons loaded via \fBloadIconSet()\fP will be loaded as soon as they need to be displayed, not earlier.
.PP
Note that enabling or disabling this only affects \fBloadIconSet()\fP calls after this setting is changed.
.PP
The default is disabled, as the iconloader object must not be destroyed before all those iconsets are destroyed.
.PP
(Some broken applications use temporary KIconLoader objects). Every \fBKInstance\fP 's iconloader has this feature enabled.
.PP
\fBParameters:\fP
.RS 4
\fIenable\fP true to enable delayed icon loading, false to disable 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBisDelayedIconSetLoadingEnabled()\fP 
.PP
\fBQIconFactory\fP 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 298 of file kiconloader.cpp.
.PP
Referenced by KInstance::iconLoader().
.SS "bool KIconLoader::isDelayedIconSetLoadingEnabled () const"
.PP
Checks whether delayed loading for \fBQIconSet\fP is enabled. 
.PP
\fBReturns:\fP
.RS 4
whether icons for QIconSets will be loaded on demand. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBenableDelayedIconSetLoading()\fP 
.PP
\fBQIconFactory\fP 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 303 of file kiconloader.cpp.
.SH "Friends And Related Function Documentation"
.PP 
.SS "KDECORE_EXPORT \fBQPixmap\fP DesktopIcon (const \fBQString\fP & name, int size = \fC0\fP, int state = \fCKIcon::DefaultState\fP, \fBKInstance\fP * instance = \fCKGlobal::instance()\fP)\fC [related]\fP"
.PP
Load a desktop icon. 
.PP
Definition at line 1279 of file kiconloader.cpp.
.PP
References KInstance::iconLoader(), and loadIcon().
.SS "KDECORE_EXPORT \fBQPixmap\fP DesktopIcon (const \fBQString\fP & name, \fBKInstance\fP * instance)\fC [related]\fP"
.PP
Load a desktop icon. 
.PP
Definition at line 1286 of file kiconloader.cpp.
.SS "KDECORE_EXPORT \fBQIconSet\fP DesktopIconSet (const \fBQString\fP & name, int size = \fC0\fP, \fBKInstance\fP * instance = \fCKGlobal::instance()\fP)\fC [related]\fP"
.PP
Load a desktop icon, and apply the necessary effects to get an IconSet. 
.PP
Definition at line 1291 of file kiconloader.cpp.
.PP
References KInstance::iconLoader(), and loadIconSet().
.SS "KDECORE_EXPORT \fBQPixmap\fP BarIcon (const \fBQString\fP & name, int size = \fC0\fP, int state = \fCKIcon::DefaultState\fP, \fBKInstance\fP * instance = \fCKGlobal::instance()\fP)\fC [related]\fP"
.PP
Load a toolbar icon. 
.PP
Definition at line 1297 of file kiconloader.cpp.
.PP
References KInstance::iconLoader(), and loadIcon().
.SS "KDECORE_EXPORT \fBQPixmap\fP BarIcon (const \fBQString\fP & name, \fBKInstance\fP * instance)\fC [related]\fP"
.PP
Load a toolbar icon. 
.PP
Definition at line 1304 of file kiconloader.cpp.
.SS "KDECORE_EXPORT \fBQIconSet\fP BarIconSet (const \fBQString\fP & name, int size = \fC0\fP, \fBKInstance\fP * instance = \fCKGlobal::instance()\fP)\fC [related]\fP"
.PP
Load a toolbar icon, and apply the necessary effects to get an IconSet. 
.PP
Definition at line 1309 of file kiconloader.cpp.
.PP
References KInstance::iconLoader(), and loadIconSet().
.SS "KDECORE_EXPORT \fBQPixmap\fP SmallIcon (const \fBQString\fP & name, int size = \fC0\fP, int state = \fCKIcon::DefaultState\fP, \fBKInstance\fP * instance = \fCKGlobal::instance()\fP)\fC [related]\fP"
.PP
Load a small icon. 
.PP
Definition at line 1315 of file kiconloader.cpp.
.PP
References KInstance::iconLoader(), and loadIcon().
.SS "KDECORE_EXPORT \fBQPixmap\fP SmallIcon (const \fBQString\fP & name, \fBKInstance\fP * instance)\fC [related]\fP"
.PP
Load a small icon. 
.PP
Definition at line 1322 of file kiconloader.cpp.
.SS "KDECORE_EXPORT \fBQIconSet\fP SmallIconSet (const \fBQString\fP & name, int size = \fC0\fP, \fBKInstance\fP * instance = \fCKGlobal::instance()\fP)\fC [related]\fP"
.PP
Load a small icon, and apply the necessary effects to get an IconSet. 
.PP
Definition at line 1327 of file kiconloader.cpp.
.PP
References KInstance::iconLoader(), and loadIconSet().
.SS "KDECORE_EXPORT \fBQPixmap\fP MainBarIcon (const \fBQString\fP & name, int size = \fC0\fP, int state = \fCKIcon::DefaultState\fP, \fBKInstance\fP * instance = \fCKGlobal::instance()\fP)\fC [related]\fP"
.PP
Load a main toolbar icon. 
.PP
Definition at line 1333 of file kiconloader.cpp.
.PP
References KInstance::iconLoader(), and loadIcon().
.SS "KDECORE_EXPORT \fBQPixmap\fP MainBarIcon (const \fBQString\fP & name, \fBKInstance\fP * instance)\fC [related]\fP"
.PP
Load a main toolbar icon. 
.PP
Definition at line 1340 of file kiconloader.cpp.
.SS "KDECORE_EXPORT \fBQIconSet\fP MainBarIconSet (const \fBQString\fP & name, int size = \fC0\fP, \fBKInstance\fP * instance = \fCKGlobal::instance()\fP)\fC [related]\fP"
.PP
Load a main toolbar icon, and apply the effects to get an IconSet. 
.PP
Definition at line 1345 of file kiconloader.cpp.
.PP
References KInstance::iconLoader(), and loadIconSet().
.SS "KDECORE_EXPORT \fBQPixmap\fP UserIcon (const \fBQString\fP & name, int state = \fCKIcon::DefaultState\fP, \fBKInstance\fP * instance = \fCKGlobal::instance()\fP)\fC [related]\fP"
.PP
Load a user icon. 
.PP
User icons are searched in $appdir/pics. 
.PP
Definition at line 1351 of file kiconloader.cpp.
.PP
References KInstance::iconLoader(), and loadIcon().
.SS "KDECORE_EXPORT \fBQPixmap\fP UserIcon (const \fBQString\fP & name, \fBKInstance\fP * instance)\fC [related]\fP"
.PP
Load a user icon. 
.PP
User icons are searched in $appdir/pics. 
.PP
Definition at line 1357 of file kiconloader.cpp.
.SS "KDECORE_EXPORT \fBQIconSet\fP UserIconSet (const \fBQString\fP & name, \fBKInstance\fP * instance = \fCKGlobal::instance()\fP)\fC [related]\fP"
.PP
Load a user icon, and apply the effects to get an IconSet. 
.PP
Definition at line 1362 of file kiconloader.cpp.
.PP
References KInstance::iconLoader(), and loadIconSet().
.SS "KDECORE_EXPORT int IconSize (\fBKIcon::Group\fP group, \fBKInstance\fP * instance = \fCKGlobal::instance()\fP)\fC [related]\fP"
.PP
Returns the current icon size for a specific group. 
.PP
Definition at line 1368 of file kiconloader.cpp.
.PP
References currentSize(), and KInstance::iconLoader().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
