Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions

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

Additional Inherited Members


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.


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0