editor.common.icon_cache

This module provide theme related icon/pixmap cache toolkit.

Module Contents

editor.common.icon_cache.getEmptyIcon()[source]

Get empty icon, which means QIcon().

Returns:

empty icon object.

Return type:

QIcon

editor.common.icon_cache.getThemeIcon(path)[source]

Get icon cache of certain path.

Parameters:

path (str) – Icon path, related to theme folder.

Returns:

Icon object of path.

Return type:

QIcon

editor.common.icon_cache.releaseThemeIconCache()[source]

Clear all theme icon cache

editor.common.icon_cache.getThemePixmap(path)[source]

Get pixmap cache of certain path.

Parameters:

path (str) – Pixmap path, related to theme folder.

Returns:

Pixmap object of path.

Return type:

QPixmap

editor.common.icon_cache.releaseThemePixmapCache()[source]

Clear all theme pixmap cache