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>.
Loading...
Searching...
No Matches
QQuickLabsPlatformIconLoader Class Reference

#include <qquicklabsplatformiconloader_p.h>

+ Inheritance diagram for QQuickLabsPlatformIconLoader:
+ Collaboration diagram for QQuickLabsPlatformIconLoader:

Public Member Functions

 QQuickLabsPlatformIconLoader (int slot, QObject *parent)
 
bool isEnabled () const
 
void setEnabled (bool enabled)
 
QIcon toQIcon () const
 
QQuickLabsPlatformIcon icon () const
 
void setIcon (const QQuickLabsPlatformIcon &icon)
 
- Public Member Functions inherited from QQuickPixmap
 QQuickPixmap ()
 
 QQuickPixmap (QQmlEngine *, const QUrl &)
 
 QQuickPixmap (QQmlEngine *, const QUrl &, Options options)
 
 QQuickPixmap (QQmlEngine *, const QUrl &, const QRect &region, const QSize &)
 
 QQuickPixmap (const QUrl &, const QImage &image)
 
 ~QQuickPixmap ()
 
bool isNull () const
 
bool isReady () const
 
bool isError () const
 
bool isLoading () const
 
Status status () const
 
QString error () const
 
const QUrlurl () const
 
const QSizeimplicitSize () const
 
const QRectrequestRegion () const
 
const QSizerequestSize () const
 
QQuickImageProviderOptions::AutoTransform autoTransform () const
 
int frameCount () const
 
QImage image () const
 
void setImage (const QImage &)
 
void setPixmap (const QQuickPixmap &other)
 
QColorSpace colorSpace () const
 
QQuickTextureFactorytextureFactory () const
 
QRect rect () const
 
int width () const
 
int height () const
 
void load (QQmlEngine *, const QUrl &)
 
void load (QQmlEngine *, const QUrl &, QQuickPixmap::Options options)
 
void load (QQmlEngine *, const QUrl &, const QRect &requestRegion, const QSize &requestSize)
 
void load (QQmlEngine *, const QUrl &, const QRect &requestRegion, const QSize &requestSize, QQuickPixmap::Options options)
 
void load (QQmlEngine *, const QUrl &, const QRect &requestRegion, const QSize &requestSize, QQuickPixmap::Options options, const QQuickImageProviderOptions &providerOptions, int frame=0, int frameCount=1, qreal devicePixelRatio=1.0)
 
void loadImageFromDevice (QQmlEngine *engine, QIODevice *device, const QUrl &url, const QRect &requestRegion, const QSize &requestSize, const QQuickImageProviderOptions &providerOptions, int frame=0, int frameCount=1)
 
void clear ()
 
void clear (QObject *)
 
bool connectFinished (QObject *, const char *)
 
bool connectFinished (QObject *, int)
 
bool connectDownloadProgress (QObject *, const char *)
 
bool connectDownloadProgress (QObject *, int)
 

Additional Inherited Members

- Public Types inherited from QQuickPixmap
enum  Status { Null , Ready , Error , Loading }
 
enum  Option { Asynchronous = 0x00000001 , Cache = 0x00000002 }
 
- Static Public Member Functions inherited from QQuickPixmap
static void purgeCache ()
 
static bool isCached (const QUrl &url, const QRect &requestRegion, const QSize &requestSize, const int frame, const QQuickImageProviderOptions &options)
 
static bool isScalableImageFormat (const QUrl &url)
 
- Static Public Attributes inherited from QQuickPixmap
static const QLatin1String itemGrabberScheme = QLatin1String("itemgrabber")
 

Detailed Description

Definition at line 29 of file qquicklabsplatformiconloader_p.h.

Constructor & Destructor Documentation

◆ QQuickLabsPlatformIconLoader()

QT_BEGIN_NAMESPACE QQuickLabsPlatformIconLoader::QQuickLabsPlatformIconLoader ( int slot,
QObject * parent )

Definition at line 12 of file qquicklabsplatformiconloader.cpp.

References Q_ASSERT.

Member Function Documentation

◆ icon()

QQuickLabsPlatformIcon QQuickLabsPlatformIconLoader::icon ( ) const

Definition at line 40 of file qquicklabsplatformiconloader.cpp.

Referenced by QQuickLabsPlatformMenu::icon(), QQuickLabsPlatformMenuItem::icon(), QQuickLabsPlatformSystemTrayIcon::icon(), setIcon(), and toQIcon().

+ Here is the caller graph for this function:

◆ isEnabled()

bool QQuickLabsPlatformIconLoader::isEnabled ( ) const

Definition at line 20 of file qquicklabsplatformiconloader.cpp.

◆ setEnabled()

void QQuickLabsPlatformIconLoader::setEnabled ( bool enabled)

◆ setIcon()

void QQuickLabsPlatformIconLoader::setIcon ( const QQuickLabsPlatformIcon & icon)

Definition at line 45 of file qquicklabsplatformiconloader.cpp.

References icon().

Referenced by QQuickLabsPlatformMenu::setIcon(), QQuickLabsPlatformMenuItem::setIcon(), and QQuickLabsPlatformSystemTrayIcon::setIcon().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toQIcon()

QIcon QQuickLabsPlatformIconLoader::toQIcon ( ) const

Definition at line 32 of file qquicklabsplatformiconloader.cpp.

References QPixmap::fromImage(), QIcon::fromTheme(), icon(), QQuickPixmap::image(), QQuickLabsPlatformIcon::isMask(), and QQuickLabsPlatformIcon::name.

Referenced by QQuickLabsPlatformMenuItem::sync().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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