QDesignerIconCacheInterface Class Reference
The QDesignerIconCacheInterface provides an interface to Qt Designer's icon cache. More...
#include <QDesignerIconCacheInterface>
Part of the QtDesigner module.
Inherits QObject.
Public Functions
- QDesignerIconCacheInterface ( QObject * parent )
- virtual QList<QIcon> iconList () const = 0
- virtual QString iconToFilePath ( const QIcon & icon ) const = 0
- virtual QString iconToQrcPath ( const QIcon & icon ) const = 0
- virtual QIcon nameToIcon ( const QString & filePath, const QString & qrcPath = QString() ) = 0
- virtual QPixmap nameToPixmap ( const QString & filePath, const QString & qrcPath = QString() ) = 0
- virtual QList<QPixmap> pixmapList () const = 0
- virtual QString pixmapToFilePath ( const QPixmap & pixmap ) const = 0
- virtual QString pixmapToQrcPath ( const QPixmap & pixmap ) const = 0
- virtual QString resolveQrcPath ( const QString & filePath, const QString & qrcPath, const QString & workingDirectory = QString() ) const = 0
- 28 public functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from QObject
- 4 static public members inherited from QObject
- 7 protected functions inherited from QObject
Detailed Description
The QDesignerIconCacheInterface provides an interface to Qt Designer's icon cache.
Member Function Documentation
QDesignerIconCacheInterface::QDesignerIconCacheInterface ( QObject * parent )
Constructs a new interface with the given parent.
QList<QIcon> QDesignerIconCacheInterface::iconList () const [pure virtual]
Returns a list of icons provided by the icon cache.
QString QDesignerIconCacheInterface::iconToFilePath ( const QIcon & icon ) const [pure virtual]
Returns the file path associated with the given icon. The file path is a path within an application resources.
QString QDesignerIconCacheInterface::iconToQrcPath ( const QIcon & icon ) const [pure virtual]
Returns the path to the resource file that refers to the specified icon. The resource path refers to a local file.
QIcon QDesignerIconCacheInterface::nameToIcon ( const QString & filePath, const QString & qrcPath = QString() ) [pure virtual]
Returns the icon associated with the name specified by filePath in the resource file specified by qrcPath.
If qrcPath refers to a valid resource file, the name used for the file path is a path within those resources; otherwise the file path refers to a local file.
See also Qt Resource System and nameToPixmap().
QPixmap QDesignerIconCacheInterface::nameToPixmap ( const QString & filePath, const QString & qrcPath = QString() ) [pure virtual]
Returns the pixmap associated with the name specified by filePath in the resource file specified by qrcPath.
If qrcPath refers to a valid resource file, the name used for the file path is a path within those resources; otherwise the file path refers to a local file.
See also Qt Resource System and nameToPixmap().
QList<QPixmap> QDesignerIconCacheInterface::pixmapList () const [pure virtual]
Returns a list of pixmaps for the icons provided by the icon cache.
QString QDesignerIconCacheInterface::pixmapToFilePath ( const QPixmap & pixmap ) const [pure virtual]
Returns the file path associated with the given pixmap. The file path is a path within an application resources.
QString QDesignerIconCacheInterface::pixmapToQrcPath ( const QPixmap & pixmap ) const [pure virtual]
Returns the path to the resource file that refers to the specified pixmap. The resource path refers to a local file.
QString QDesignerIconCacheInterface::resolveQrcPath ( const QString & filePath, const QString & qrcPath, const QString & workingDirectory = QString() ) const [pure virtual]
Returns a path to a resource specified by the filePath within the resource file located at qrcPath. If workingDirectory is a valid path to a directory, the path returned will be relative to that directory; otherwise an absolute path is returned.