Icon factory to load icons.
More...
#include <icon.hpp>
|
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.
|
|
Icon factory to load icons.
◆ icon() [1/2]
QIcon tde::widgets::IconFactory::icon |
( |
const QString & |
path | ) |
|
|
static |
Get icon from path.
- Parameters
-
- Returns
- QIcon Icon.
◆ icon() [2/2]
QIcon tde::widgets::IconFactory::icon |
( |
IconType |
type | ) |
|
|
static |
Get icon from type.
- Parameters
-
- Returns
- QIcon Icon.
◆ pixmap() [1/3]
QPixmap tde::widgets::IconFactory::pixmap |
( |
const QString & |
path | ) |
|
|
static |
Get pixmap from path.
- Parameters
-
- Returns
- QPixmap Pixmap.
◆ pixmap() [2/3]
QPixmap tde::widgets::IconFactory::pixmap |
( |
IconType |
type | ) |
|
|
static |
Get pixmap from type.
- Parameters
-
- Returns
- QPixmap Pixmap.
◆ pixmap() [3/3]
QPixmap tde::widgets::IconFactory::pixmap |
( |
IconType |
type, |
|
|
const QSize & |
size |
|
) |
| |
|
static |
Get pixmap from type and size.
- Parameters
-
type | Icon type. |
size | Icon size. |
- Returns
- QPixmap Pixmap.
◆ 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:
- include/tde/widgets/icon.hpp
- src/widgets/icon.cpp