NDEVR
API Documentation
SVGIconEngine

A QIconEngine used to render SVG icons. More...

Inheritance diagram for SVGIconEngine:
[legend]
Collaboration diagram for SVGIconEngine:
[legend]

Public Member Functions

 SVGIconEngine ()
 Constructs an SVGIconEngine.
bool canProcess (const StringView &icon, const IconThemeSettings &theme, QIcon::Mode mode) const final override
 Checks whether this engine can process the given icon.
QIcon createIcon (const StringView &icon, const IconThemeSettings &theme, QIcon::Mode mode=QIcon::Mode::Normal) final override
 Creates a QIcon from the given SVG icon identifier.
Public Member Functions inherited from NDEVRIconEngine
 NDEVRIconEngine (const UUID &id)
 Constructs an icon engine with the given unique identifier.
UUID id () const
 Returns the unique identifier for this icon engine.

Detailed Description

A QIconEngine used to render SVG icons.



Allows the NDEVR engine to process and display SVG icons within the UI.

Definition at line 87 of file SVGIconManager.h.

Member Function Documentation

◆ canProcess()

bool SVGIconEngine::canProcess ( const StringView & icon,
const IconThemeSettings & theme,
QIcon::Mode mode ) const
finaloverridevirtual

Checks whether this engine can process the given icon.

Parameters
[in]iconThe icon identifier to check.
[in]themeThe icon theme settings.
[in]modeThe QIcon display mode.
Returns
True if this engine can process the icon.

Implements NDEVRIconEngine.

◆ createIcon()

QIcon SVGIconEngine::createIcon ( const StringView & icon,
const IconThemeSettings & theme,
QIcon::Mode mode = QIcon::Mode::Normal )
finaloverridevirtual

Creates a QIcon from the given SVG icon identifier.

Parameters
[in]iconThe icon identifier string.
[in]themeThe icon theme settings.
[in]modeThe QIcon display mode.
Returns
The created QIcon.

Implements NDEVRIconEngine.


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