Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdesigner_internal::IconProvider Class Reference
+ Inheritance diagram for qdesigner_internal::IconProvider:
+ Collaboration diagram for qdesigner_internal::IconProvider:

Public Member Functions

 IconProvider ()
 
QIcon icon (const QFileInfo &info) const override
 Returns an icon for the file described by info, using the current icon theme.
 
bool loadCheck (const QFileInfo &info) const
 
QImage loadImage (const QString &fileName) const
 
 IconProvider ()
 
QIcon icon (const QFileInfo &info) const override
 Returns an icon for the file described by info, using the current icon theme.
 
bool loadCheck (const QFileInfo &info) const
 
QImage loadImage (const QString &fileName) const
 
- Public Member Functions inherited from QFileIconProvider
 QFileIconProvider ()
 Constructs a file icon provider.
 
 ~QFileIconProvider ()
 Destroys the file icon provider.
 
QIcon icon (IconType type) const override
 \reimp
 
QIcon icon (const QFileInfo &info) const override
 \reimp
 
- Public Member Functions inherited from QAbstractFileIconProvider
 QAbstractFileIconProvider ()
 Constructs a file icon provider.
 
virtual ~QAbstractFileIconProvider ()
 Destroys the file icon provider.
 
virtual QString type (const QFileInfo &) const
 Returns the type of the file described by info.
 
virtual void setOptions (Options)
 Sets options that affect the icon provider.
 
virtual Options options () const
 Returns all the options that affect the icon provider.
 

Additional Inherited Members

- Public Types inherited from QAbstractFileIconProvider
enum  IconType {
  Computer , Desktop , Trashcan , Network ,
  Drive , Folder , File
}
 \value Computer The icon used for the computing device as a whole \value Desktop The icon for the special "Desktop" directory of the user \value Trashcan The icon for the user's "Trash" place in the desktop's file manager \value Network The icon for the “Network Servers” place in the desktop's file manager, and workgroups within the network \value Drive The icon used for disk drives \value Folder The standard folder icon used to represent directories on local filesystems \value File The icon used for generic text file types More...
 
enum  Option { DontUseCustomDirectoryIcons = 0x00000001 }
 \value DontUseCustomDirectoryIcons Always use the default directory icon. More...
 
- Protected Member Functions inherited from QAbstractFileIconProvider
 QAbstractFileIconProvider (QAbstractFileIconProviderPrivate &dd)
 
- Protected Attributes inherited from QAbstractFileIconProvider
QScopedPointer< QAbstractFileIconProviderPrivated_ptr
 

Detailed Description

Definition at line 26 of file dialoggui.cpp.

Constructor & Destructor Documentation

◆ IconProvider() [1/2]

qdesigner_internal::IconProvider::IconProvider ( )

Definition at line 40 of file dialoggui.cpp.

◆ IconProvider() [2/2]

qdesigner_internal::IconProvider::IconProvider ( )

Member Function Documentation

◆ icon() [1/2]

QIcon qdesigner_internal::IconProvider::icon ( const QFileInfo & info) const
overridevirtual

Returns an icon for the file described by info, using the current icon theme.

See also
QIcon::fromTheme

Reimplemented from QAbstractFileIconProvider.

Definition at line 76 of file dialoggui.cpp.

◆ icon() [2/2]

QIcon qdesigner_internal::IconProvider::icon ( const QFileInfo & info) const
overridevirtual

Returns an icon for the file described by info, using the current icon theme.

See also
QIcon::fromTheme

Reimplemented from QAbstractFileIconProvider.

◆ loadCheck() [1/2]

bool qdesigner_internal::IconProvider::loadCheck ( const QFileInfo & info) const
inline

Definition at line 52 of file dialoggui.cpp.

◆ loadCheck() [2/2]

bool qdesigner_internal::IconProvider::loadCheck ( const QFileInfo & info) const
inline

◆ loadImage() [1/2]

QImage qdesigner_internal::IconProvider::loadImage ( const QString & fileName) const

Definition at line 62 of file dialoggui.cpp.

◆ loadImage() [2/2]

QImage qdesigner_internal::IconProvider::loadImage ( const QString & fileName) const

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