![]() |
BuildmLearn Toolkit
2.0.4
BuildmLearn Toolkit is an easy-to-use program that helps users make mobile apps without any knowledge of application development.
|
Icon theme manipulator and provider. More...
#include <iconfactory.h>
Public Member Functions | |
QIcon | fromTheme (const QString &name) |
Returns icon from active theme. More... | |
void | setupSearchPaths () |
Adds custom application path to be search for icons. | |
QStringList | installedIconThemes () const |
Access to list of icon themes. More... | |
void | loadCurrentIconTheme () |
Loads name of selected icon theme (from settings) for the application and activates it. More... | |
QString | currentIconTheme () const |
Gets name of current theme. More... | |
void | setCurrentIconTheme (const QString &theme_name) |
Sets icon theme with given name as the active one and loads it. More... | |
Static Public Member Functions | |
static IconFactory * | instance () |
Singleton getter. More... | |
Icon theme manipulator and provider.
Definition at line 47 of file iconfactory.h.
|
inline |
Gets name of current theme.
Definition at line 87 of file iconfactory.h.
|
inline |
Returns icon from active theme.
name | Name of the icon. |
Definition at line 58 of file iconfactory.h.
QStringList IconFactory::installedIconThemes | ( | ) | const |
Access to list of icon themes.
Definition at line 101 of file iconfactory.cpp.
|
static |
Singleton getter.
Definition at line 48 of file iconfactory.cpp.
void IconFactory::loadCurrentIconTheme | ( | ) |
Loads name of selected icon theme (from settings) for the application and activates it.
Definition at line 69 of file iconfactory.cpp.
void IconFactory::setCurrentIconTheme | ( | const QString & | theme_name | ) |
Sets icon theme with given name as the active one and loads it.
theme_name | New theme name. |
Definition at line 65 of file iconfactory.cpp.