Qt 4.8
Public Functions | Public Variables | List of all members
ScalableEntry Struct Reference

#include <qiconloader_p.h>

Inheritance diagram for ScalableEntry:
QIconLoaderEngineEntry

Public Functions

QPixmap pixmap (const QSize &size, QIcon::Mode mode, QIcon::State state)
 
- Public Functions inherited from QIconLoaderEngineEntry
virtual ~QIconLoaderEngineEntry ()
 

Public Variables

QIcon svgIcon
 
- Public Variables inherited from QIconLoaderEngineEntry
QIconDirInfo dir
 
QString filename
 

Additional Inherited Members

- Static Public Variables inherited from QIconLoaderEngineEntry
static int count
 

Detailed Description

Definition at line 98 of file qiconloader_p.h.

Functions

◆ pixmap()

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

Implements QIconLoaderEngineEntry.

Definition at line 512 of file qiconloader.cpp.

513 {
514  if (svgIcon.isNull())
516 
517  // Simply reuse svg icon engine
518  return svgIcon.pixmap(size, mode, state);
519 }
bool isNull() const
Returns true if the icon is empty; otherwise returns false.
Definition: qicon.cpp:769
QPixmap pixmap(const QSize &size, Mode mode=Normal, State state=Off) const
Returns a pixmap with the requested size, mode, and state, generating one if necessary.
Definition: qicon.cpp:693
The QIcon class provides scalable icons in different modes and states.
Definition: qicon.h:60

Properties

◆ svgIcon

QIcon ScalableEntry::svgIcon

Definition at line 101 of file qiconloader_p.h.


The documentation for this struct was generated from the following files: