TDE 0.1.0
 
Loading...
Searching...
No Matches
tde::widgets::IconFactory Class Reference

Icon factory to load icons. More...

#include <icon.hpp>

Static Public Member Functions

static QIcon icon (IconType type)
 Get icon from type.
 
static QIcon icon (const QString &path)
 Get icon from path.
 
static QPixmap pixmap (IconType type)
 Get pixmap from type.
 
static QPixmap pixmap (IconType type, const QSize &size)
 Get pixmap from type and size.
 
static QPixmap pixmap (const QString &path)
 Get pixmap from path.
 

Static Public Attributes

static const QMap< IconType, QString > ICON_MAP
 

Detailed Description

Icon factory to load icons.

Member Function Documentation

◆ icon() [1/2]

QIcon tde::widgets::IconFactory::icon ( const QString &  path)
static

Get icon from path.

Parameters
pathIcon path.
Returns
QIcon Icon.

◆ icon() [2/2]

QIcon tde::widgets::IconFactory::icon ( IconType  type)
static

Get icon from type.

Parameters
typeIcon type.
Returns
QIcon Icon.

◆ pixmap() [1/3]

QPixmap tde::widgets::IconFactory::pixmap ( const QString &  path)
static

Get pixmap from path.

Parameters
pathIcon path.
Returns
QPixmap Pixmap.

◆ pixmap() [2/3]

QPixmap tde::widgets::IconFactory::pixmap ( IconType  type)
static

Get pixmap from type.

Parameters
typeIcon type.
Returns
QPixmap Pixmap.

◆ pixmap() [3/3]

QPixmap tde::widgets::IconFactory::pixmap ( IconType  type,
const QSize &  size 
)
static

Get pixmap from type and size.

Parameters
typeIcon type.
sizeIcon size.
Returns
QPixmap Pixmap.

Member Data Documentation

◆ ICON_MAP

const QMap<IconType, QString> tde::widgets::IconFactory::ICON_MAP
inlinestatic
Initial value:
= {
{ IconType::DEFAULT, ":/tde/icons/default.svg" },
{ IconType::HELP_ABOUT, ":/tde/icons/help-about.svg" },
}

Icon map.


The documentation for this class was generated from the following files: