pqIconSettings is a class to handle icons settings for a specific category of graphical item. More...
#include <pqIconSettings.h>
Public Member Functions | |
pqIconSettings (const QString &iconCategory) | |
void | setItemIconInSettings (const QString &itemKey, const QString &iconPath) |
Fill settings with item key and icon paths. More... | |
QString | getIconFromSettings (const QString &itemKey) |
Return icon path associated to given key in the settings. More... | |
QMap< QString, QString > | getSettings () |
Get a map of {itemkey: iconPath} from the current settings for the current category. More... | |
void | writeSettings (const QMap< QString, QString > &iconMap) |
Write the given map to the settings. More... | |
void | removeItemFromSettings (const QString &itemKey) |
Remove the given item and its associated icon from the settings. More... | |
pqIconSettings is a class to handle icons settings for a specific category of graphical item.
It can be used for instance to store icon associated to macros.
Definition at line 18 of file pqIconSettings.h.
pqIconSettings::pqIconSettings | ( | const QString & | iconCategory | ) |
Fill settings with item key and icon paths.
QString pqIconSettings::getIconFromSettings | ( | const QString & | itemKey | ) |
Return icon path associated to given key in the settings.
QMap<QString, QString> pqIconSettings::getSettings | ( | ) |
Get a map of {itemkey: iconPath} from the current settings for the current category.
void pqIconSettings::writeSettings | ( | const QMap< QString, QString > & | iconMap | ) |
Write the given map to the settings.
Map is expected to be at format {itemkey: iconPath} Previous settings are erased for current category.
void pqIconSettings::removeItemFromSettings | ( | const QString & | itemKey | ) |
Remove the given item and its associated icon from the settings.