![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtGui More...
#include <qabstractfileiconprovider.h>
Public Types | |
| 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... | |
Public Member Functions | |
| QAbstractFileIconProvider () | |
| Constructs a file icon provider. | |
| virtual | ~QAbstractFileIconProvider () |
| Destroys the file icon provider. | |
| virtual QIcon | icon (IconType) const |
| Returns an icon set for the given type, using the current icon theme. | |
| virtual QIcon | icon (const QFileInfo &) const |
| Returns an icon for the file described by info, using the current icon theme. | |
| 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. | |
Protected Member Functions | |
| QAbstractFileIconProvider (QAbstractFileIconProviderPrivate &dd) | |
Protected Attributes | |
| QScopedPointer< QAbstractFileIconProviderPrivate > | d_ptr |
\inmodule QtGui
The QAbstractFileIconProvider class provides file icons for the QFileSystemModel class.
Definition at line 17 of file qabstractfileiconprovider.h.
\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
| Enumerator | |
|---|---|
| Computer | |
| Desktop | |
| Trashcan | |
| Network | |
| Drive | |
| Folder | |
| File | |
Definition at line 21 of file qabstractfileiconprovider.h.
\value DontUseCustomDirectoryIcons Always use the default directory icon.
Some platforms allow the user to set a different icon. Custom icon lookup cause a big performance impact over network or removable drives.
| Enumerator | |
|---|---|
| DontUseCustomDirectoryIcons | |
Definition at line 23 of file qabstractfileiconprovider.h.
| QAbstractFileIconProvider::QAbstractFileIconProvider | ( | ) |
Constructs a file icon provider.
Definition at line 175 of file qabstractfileiconprovider.cpp.
|
virtualdefault |
Destroys the file icon provider.
|
protected |
Definition at line 183 of file qabstractfileiconprovider.cpp.
Returns an icon for the file described by info, using the current icon theme.
Reimplemented in qdesigner_internal::IconProvider, qdesigner_internal::IconProvider, and QFileIconProvider.
Definition at line 237 of file qabstractfileiconprovider.cpp.
Returns an icon set for the given type, using the current icon theme.
Reimplemented in QFileIconProvider.
Definition at line 224 of file qabstractfileiconprovider.cpp.
|
virtual |
Returns all the options that affect the icon provider.
By default, all options are disabled.
Definition at line 211 of file qabstractfileiconprovider.cpp.
Referenced by testing.tools.test_runner._TestCaseRunner::_NewImageArtifact(), testing.tools.test_runner._TestCaseRunner::_RegenerateIfNeeded(), testing.tools.test_runner.TestRunner::IsSkiaGoldEnabled(), testing.tools.test_runner._TestCaseRunner::TestPixel(), and testing.tools.test_runner._TestCaseRunner::TestText().
Sets options that affect the icon provider.
Definition at line 199 of file qabstractfileiconprovider.cpp.
Returns the type of the file described by info.
Definition at line 286 of file qabstractfileiconprovider.cpp.
|
protected |
Definition at line 40 of file qabstractfileiconprovider.h.