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
QQuickIcon Class Reference

#include <qquickicon_p.h>

+ Collaboration diagram for QQuickIcon:

Public Member Functions

 QQuickIcon ()
 
 QQuickIcon (const QQuickIcon &other)
 
 ~QQuickIcon ()
 
QQuickIconoperator= (const QQuickIcon &other)
 
bool operator== (const QQuickIcon &other) const
 
bool operator!= (const QQuickIcon &other) const
 
bool isEmpty () const
 
QString name () const
 
void setName (const QString &name)
 
void resetName ()
 
QUrl source () const
 
void setSource (const QUrl &source)
 
void resetSource ()
 
QUrl resolvedSource () const
 
void ensureRelativeSourceResolved (const QObject *owner)
 
int width () const
 
void setWidth (int width)
 
void resetWidth ()
 
int height () const
 
void setHeight (int height)
 
void resetHeight ()
 
QColor color () const
 
void setColor (const QColor &color)
 
void resetColor ()
 
bool cache () const
 
void setCache (bool cache)
 
void resetCache ()
 
QQuickIcon resolve (const QQuickIcon &other) const
 

Properties

QString name
 
QUrl source
 
int width
 
int height
 
QColor color
 
bool cache
 

Detailed Description

Definition at line 30 of file qquickicon_p.h.

Constructor & Destructor Documentation

◆ QQuickIcon() [1/2]

QQuickIcon::QQuickIcon ( )

Definition at line 35 of file qquickicon.cpp.

◆ QQuickIcon() [2/2]

QQuickIcon::QQuickIcon ( const QQuickIcon & other)

Definition at line 40 of file qquickicon.cpp.

◆ ~QQuickIcon()

QQuickIcon::~QQuickIcon ( )

Definition at line 45 of file qquickicon.cpp.

Member Function Documentation

◆ cache()

bool QQuickIcon::cache ( ) const

Definition at line 207 of file qquickicon.cpp.

References QQuickIconPrivate::cache.

◆ color()

QColor QQuickIcon::color ( ) const

Definition at line 185 of file qquickicon.cpp.

References QQuickIconPrivate::color.

◆ ensureRelativeSourceResolved()

void QQuickIcon::ensureRelativeSourceResolved ( const QObject * owner)

Definition at line 128 of file qquickicon.cpp.

References QExplicitlySharedDataPointer< T >::detach(), QQmlData::get(), QUrl::isEmpty(), QQuickIconPrivate::resolvedSource, and QQuickIconPrivate::source.

Referenced by QQuickAction::setIcon().

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

◆ height()

int QQuickIcon::height ( ) const

Definition at line 163 of file qquickicon.cpp.

References QQuickIconPrivate::height.

◆ isEmpty()

bool QQuickIcon::isEmpty ( ) const

Definition at line 71 of file qquickicon.cpp.

References QUrl::isEmpty(), QString::isEmpty(), QQuickIconPrivate::name, and QQuickIconPrivate::source.

Referenced by QQuickIconLabelPrivate::hasIcon(), and QQuickIconLabelPrivate::syncImage().

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

◆ name()

QString QQuickIcon::name ( ) const

Definition at line 76 of file qquickicon.cpp.

References QQuickIconPrivate::name.

◆ operator!=()

bool QQuickIcon::operator!= ( const QQuickIcon & other) const

Definition at line 66 of file qquickicon.cpp.

References other().

+ Here is the call graph for this function:

◆ operator=()

QQuickIcon & QQuickIcon::operator= ( const QQuickIcon & other)

Definition at line 49 of file qquickicon.cpp.

References other().

+ Here is the call graph for this function:

◆ operator==()

bool QQuickIcon::operator== ( const QQuickIcon & other) const

Definition at line 55 of file qquickicon.cpp.

References QQuickIconPrivate::cache, QQuickIconPrivate::color, QQuickIconPrivate::height, QQuickIconPrivate::name, other(), QQuickIconPrivate::resolvedSource, QQuickIconPrivate::source, and QQuickIconPrivate::width.

+ Here is the call graph for this function:

◆ resetCache()

void QQuickIcon::resetCache ( )

Definition at line 222 of file qquickicon.cpp.

References QQuickIconPrivate::cache, QExplicitlySharedDataPointer< T >::detach(), and QQuickIconPrivate::resolveMask.

+ Here is the call graph for this function:

◆ resetColor()

void QQuickIcon::resetColor ( )

Definition at line 200 of file qquickicon.cpp.

References QQuickIconPrivate::color, QExplicitlySharedDataPointer< T >::detach(), QQuickIconPrivate::resolveMask, and Qt::transparent.

+ Here is the call graph for this function:

◆ resetHeight()

void QQuickIcon::resetHeight ( )

Definition at line 178 of file qquickicon.cpp.

References QExplicitlySharedDataPointer< T >::detach(), QQuickIconPrivate::height, and QQuickIconPrivate::resolveMask.

+ Here is the call graph for this function:

◆ resetName()

void QQuickIcon::resetName ( )

Definition at line 91 of file qquickicon.cpp.

References QExplicitlySharedDataPointer< T >::detach(), QQuickIconPrivate::name, and QQuickIconPrivate::resolveMask.

+ Here is the call graph for this function:

◆ resetSource()

void QQuickIcon::resetSource ( )

Definition at line 114 of file qquickicon.cpp.

References QUrl::clear(), QExplicitlySharedDataPointer< T >::detach(), QQuickIconPrivate::resolvedSource, QQuickIconPrivate::resolveMask, and QQuickIconPrivate::source.

+ Here is the call graph for this function:

◆ resetWidth()

void QQuickIcon::resetWidth ( )

Definition at line 156 of file qquickicon.cpp.

References QExplicitlySharedDataPointer< T >::detach(), QQuickIconPrivate::resolveMask, and QQuickIconPrivate::width.

+ Here is the call graph for this function:

◆ resolve()

QQuickIcon QQuickIcon::resolve ( const QQuickIcon & other) const

Definition at line 229 of file qquickicon.cpp.

References QQuickIconPrivate::cache, QQuickIconPrivate::CacheResolved, QQuickIconPrivate::color, QQuickIconPrivate::ColorResolved, QExplicitlySharedDataPointer< T >::detach(), QQuickIconPrivate::height, QQuickIconPrivate::HeightResolved, QQuickIconPrivate::name, QQuickIconPrivate::NameResolved, other(), QQuickIconPrivate::resolvedSource, QQuickIconPrivate::resolveMask, QQuickIconPrivate::source, QQuickIconPrivate::SourceResolved, QQuickIconPrivate::width, and QQuickIconPrivate::WidthResolved.

Referenced by QQuickAbstractButtonPrivate::updateEffectiveIcon().

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

◆ resolvedSource()

QUrl QQuickIcon::resolvedSource ( ) const

Definition at line 122 of file qquickicon.cpp.

References QUrl::isEmpty(), QQuickIconPrivate::resolvedSource, and QQuickIconPrivate::source.

Referenced by QQuickIconLabelPrivate::createImage(), and QQuickIconLabelPrivate::syncImage().

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

◆ setCache()

void QQuickIcon::setCache ( bool cache)

Definition at line 212 of file qquickicon.cpp.

References QQuickIconPrivate::cache, cache, QQuickIconPrivate::CacheResolved, QExplicitlySharedDataPointer< T >::detach(), and QQuickIconPrivate::resolveMask.

+ Here is the call graph for this function:

◆ setColor()

void QQuickIcon::setColor ( const QColor & color)

Definition at line 190 of file qquickicon.cpp.

References QQuickIconPrivate::color, color, QQuickIconPrivate::ColorResolved, QExplicitlySharedDataPointer< T >::detach(), and QQuickIconPrivate::resolveMask.

+ Here is the call graph for this function:

◆ setHeight()

void QQuickIcon::setHeight ( int height)

Definition at line 168 of file qquickicon.cpp.

References QExplicitlySharedDataPointer< T >::detach(), QQuickIconPrivate::height, height, QQuickIconPrivate::HeightResolved, and QQuickIconPrivate::resolveMask.

+ Here is the call graph for this function:

◆ setName()

void QQuickIcon::setName ( const QString & name)

Definition at line 81 of file qquickicon.cpp.

References QExplicitlySharedDataPointer< T >::detach(), QQuickIconPrivate::name, name, QQuickIconPrivate::NameResolved, and QQuickIconPrivate::resolveMask.

+ Here is the call graph for this function:

◆ setSource()

void QQuickIcon::setSource ( const QUrl & source)

Definition at line 103 of file qquickicon.cpp.

References QUrl::clear(), QExplicitlySharedDataPointer< T >::detach(), QQuickIconPrivate::resolvedSource, QQuickIconPrivate::resolveMask, QQuickIconPrivate::source, source, and QQuickIconPrivate::SourceResolved.

+ Here is the call graph for this function:

◆ setWidth()

void QQuickIcon::setWidth ( int width)

Definition at line 146 of file qquickicon.cpp.

References QExplicitlySharedDataPointer< T >::detach(), QQuickIconPrivate::resolveMask, QQuickIconPrivate::width, width, and QQuickIconPrivate::WidthResolved.

+ Here is the call graph for this function:

◆ source()

QUrl QQuickIcon::source ( ) const

Definition at line 98 of file qquickicon.cpp.

References QQuickIconPrivate::source.

◆ width()

int QQuickIcon::width ( ) const

Definition at line 141 of file qquickicon.cpp.

References QQuickIconPrivate::width.

Property Documentation

◆ cache

bool QQuickIcon::cache
readwrite

◆ color

QColor QQuickIcon::color
readwrite

◆ height

int QQuickIcon::height
readwrite

◆ name

QString QQuickIcon::name
readwrite

◆ source

QUrl QQuickIcon::source
readwrite

Definition at line 34 of file qquickicon_p.h.

Referenced by setSource().

◆ width

int QQuickIcon::width
readwrite

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