Public Member Functions | List of all members
pqIconSettings Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ pqIconSettings()

pqIconSettings::pqIconSettings ( const QString &  iconCategory)

Member Function Documentation

◆ setItemIconInSettings()

void pqIconSettings::setItemIconInSettings ( const QString &  itemKey,
const QString &  iconPath 
)

Fill settings with item key and icon paths.

◆ getIconFromSettings()

QString pqIconSettings::getIconFromSettings ( const QString &  itemKey)

Return icon path associated to given key in the settings.

◆ getSettings()

QMap<QString, QString> pqIconSettings::getSettings ( )

Get a map of {itemkey: iconPath} from the current settings for the current category.

◆ writeSettings()

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.

◆ removeItemFromSettings()

void pqIconSettings::removeItemFromSettings ( const QString &  itemKey)

Remove the given item and its associated icon from the settings.


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