API Documentation
Loading...
Searching...
No Matches
DeferredImageIconEngine Class Reference

Used to render any icons when they are needed. Resources will not be consumed until draw is called. More...

#include <QTIconManager.h>

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

Public Member Functions

QSize actualSize (const QSize &size, QIcon::Mode mode, QIcon::State state) override
 
virtual QIconEngine * clone (void) const override
 
 DeferredImageIconEngine (const String &icon, QIcon::Mode mode=QIcon::Mode::Normal)
 
virtual void paint (QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) override
 
virtual QPixmap pixmap (const QSize &size, QIcon::Mode mode, QIcon::State state) override
 
void setIconTheme (const IconThemeSettings theme)
 
 ~DeferredImageIconEngine ()
 

Public Attributes

QPixmap m_cached_pixmap
 
QSize m_default_size
 
String m_icon
 
QIcon::Mode m_override_mode
 

Detailed Description

Used to render any icons when they are needed. Resources will not be consumed until draw is called.


Constructor & Destructor Documentation

◆ DeferredImageIconEngine()

DeferredImageIconEngine ( const String & icon,
QIcon::Mode mode = QIcon::Mode::Normal )

◆ ~DeferredImageIconEngine()

Member Function Documentation

◆ actualSize()

QSize actualSize ( const QSize & size,
QIcon::Mode mode,
QIcon::State state )
override

◆ clone()

virtual QIconEngine * clone ( void ) const
overridevirtual

◆ paint()

virtual void paint ( QPainter * painter,
const QRect & rect,
QIcon::Mode mode,
QIcon::State state )
overridevirtual

◆ pixmap()

virtual QPixmap pixmap ( const QSize & size,
QIcon::Mode mode,
QIcon::State state )
overridevirtual

◆ setIconTheme()

void setIconTheme ( const IconThemeSettings theme)

Member Data Documentation

◆ m_cached_pixmap

QPixmap m_cached_pixmap

◆ m_default_size

QSize m_default_size
mutable

◆ m_icon

String m_icon

◆ m_override_mode

QIcon::Mode m_override_mode

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