Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Public Member Functions | |
QWindowsFileIconEngine (const QFileInfo &info, QPlatformTheme::IconOptions opts) | |
QList< QSize > | availableSizes (QIcon::Mode=QIcon::Normal, QIcon::State=QIcon::Off) override |
Public Member Functions inherited from QAbstractFileIconEngine | |
QAbstractFileIconEngine (const QFileInfo &info, QPlatformTheme::IconOptions opts) | |
QPixmap | pixmap (const QSize &size, QIcon::Mode mode, QIcon::State) override |
Returns the icon as a pixmap with the required size, mode, and state. | |
QPixmap | scaledPixmap (const QSize &size, QIcon::Mode mode, QIcon::State, qreal scale) override |
QSize | actualSize (const QSize &size, QIcon::Mode mode, QIcon::State state) override |
Returns the actual size of the icon the engine provides for the requested size, mode and state. | |
bool | isNull () override |
QFileInfo | fileInfo () const |
QPlatformTheme::IconOptions | options () const |
Public Member Functions inherited from QPixmapIconEngine | |
QPixmapIconEngine () | |
QPixmapIconEngine (const QPixmapIconEngine &) | |
~QPixmapIconEngine () | |
void | paint (QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) override |
Uses the given painter to paint the icon with the required mode and state into the rectangle rect. | |
QPixmap | pixmap (const QSize &size, QIcon::Mode mode, QIcon::State state) override |
Returns the icon as a pixmap with the required size, mode, and state. | |
QPixmap | scaledPixmap (const QSize &size, QIcon::Mode mode, QIcon::State state, qreal scale) override |
QPixmapIconEngineEntry * | bestMatch (const QSize &size, qreal scale, QIcon::Mode mode, QIcon::State state, bool sizeOnly) |
QSize | actualSize (const QSize &size, QIcon::Mode mode, QIcon::State state) override |
Returns the actual size of the icon the engine provides for the requested size, mode and state. | |
void | addPixmap (const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state) override |
Called by QIcon::addPixmap(). | |
void | addFile (const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state) override |
Called by QIcon::addFile(). | |
bool | isNull () override |
QString | key () const override |
\variable QIconEngine::ScaledPixmapArgument::size | |
QIconEngine * | clone () const override |
Reimplement this method to return a clone of this icon engine. | |
bool | read (QDataStream &in) override |
Reads icon engine contents from the QDataStream in. | |
bool | write (QDataStream &out) const override |
Writes the contents of this engine to the QDataStream out. | |
Public Member Functions inherited from QIconEngine | |
QIconEngine () | |
virtual | ~QIconEngine () |
Destroys the icon engine. | |
virtual QString | iconName () |
virtual void | virtual_hook (int id, void *data) |
Protected Member Functions | |
QString | cacheKey () const override |
QPixmap | filePixmap (const QSize &size, QIcon::Mode mode, QIcon::State) override |
Protected Member Functions inherited from QIconEngine | |
QIconEngine (const QIconEngine &other) | |
Additional Inherited Members | |
Public Types inherited from QIconEngine | |
enum | IconEngineHook { IsNullHook = 3 , ScaledPixmapHook } |
Static Public Member Functions inherited from QAbstractFileIconEngine | |
template<class It > | |
static QList< QSize > | toSizeList (It i1, It i2) |
Definition at line 965 of file qwindowstheme.cpp.
|
inlineexplicit |
Definition at line 968 of file qwindowstheme.cpp.
|
inlineoverridevirtual |
Returns sizes of all images that are contained in the engine for the specific mode and state.
Reimplemented from QPixmapIconEngine.
Definition at line 971 of file qwindowstheme.cpp.
References QWindowsTheme::instance().
|
overrideprotectedvirtual |
Reimplemented from QAbstractFileIconEngine.
Definition at line 979 of file qwindowstheme.cpp.
References Qt::CaseInsensitive, QString::compare(), QPlatformTheme::DontUseCustomDirectoryIcons, QAbstractFileIconEngine::fileInfo(), QFileInfo::fileName(), QString::isEmpty(), QAbstractFileIconEngine::options(), QStringLiteral, QFileInfo::suffix(), and QString::toUpper().
|
overrideprotectedvirtual |
Implements QAbstractFileIconEngine.
Definition at line 999 of file qwindowstheme.cpp.
References dirIconPixmapCacheKey(), QPlatformTheme::DontUseCustomDirectoryIcons, ExtraLargeFileIcon, fileIconSizes, QAbstractFileIconEngine::fileInfo(), QPixmapCache::find(), iconSize, QPixmapCache::insert(), QFileInfo::isDir(), QFileInfo::isRoot(), QPixmapIconEngine::key(), LargeFileIcon, QAbstractFileIconEngine::options(), pixmap, pixmapFromShellImageList(), QStringLiteral, qt_pixmapFromWinHICON(), qWarning, sHIL_EXTRALARGE, sHIL_JUMBO, SmallFileIcon, task, and QDir::toNativeSeparators().