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

KDEUI

KIcon Class Reference

#include <kicon.h>

Inheritance diagram for KIcon:

Inheritance graph
[legend]

List of all members.


Detailed Description

A wrapper around QIcon that provides KDE icon features.

KIcon is a convenience class for creating a QIcon with an appropriate KIconEngine to perform loading and rendering. KIcons thus adhere to KDE style and effect standards.

See also:
KIconEngine, KIconLoader, KIconTheme
Author:
Hamish Rodda <rodda@kde.org>

Definition at line 40 of file kicon.h.


Public Member Functions

 KIcon ()
 KIcon (const QIcon &copy)
 KIcon (const QString &iconName)
 KIcon (const QString &iconName, KIconLoader *iconLoader)
 KIcon (const QString &iconName, KIconLoader *iconLoader, const QStringList &overlays)
KIcon & operator= (const KIcon &other)
 ~KIcon ()

Constructor & Destructor Documentation

KIcon::KIcon ( const QString &  iconName,
KIconLoader *  iconLoader,
const QStringList &  overlays 
) [explicit]

Constructor which takes a kde style icon name, and optionally a custom icon loader.

Parameters:
iconName The name of the kde icon to load
iconLoader The icon loader to use in loading this icon, or null to use the default global icon loader.
overlays A list of overlays to apply to this icon. They are loaded from the emblems icons and up to four (one per corner) is currently supported

Definition at line 26 of file kicon.cpp.

KIcon::KIcon ( const QString &  iconName,
KIconLoader *  iconLoader 
) [explicit]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 32 of file kicon.cpp.

KIcon::KIcon ( const QString &  iconName  )  [explicit]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 38 of file kicon.cpp.

KIcon::KIcon ( const QIcon &  copy  )  [explicit]

Copy constructor which takes any QIcon.

Parameters:
copy the icon to copy. This should have once been a KIcon, if you want to preserve KDE icon effects.

Definition at line 49 of file kicon.cpp.

KIcon::KIcon (  ) 

Constructor for a null icon.

Definition at line 44 of file kicon.cpp.

KIcon::~KIcon (  ) 

Destroys the icon.

Definition at line 55 of file kicon.cpp.


Member Function Documentation

KIcon & KIcon::operator= ( const KIcon &  other  ) 

Definition at line 60 of file kicon.cpp.


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

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • 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
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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