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

#include <qquickuniversalstyle_p.h>

+ Inheritance diagram for QQuickUniversalStyle:
+ Collaboration diagram for QQuickUniversalStyle:

Public Types

enum  Theme { Light , Dark , System }
 
enum  Color {
  Lime , Green , Emerald , Teal ,
  Cyan , Cobalt , Indigo , Violet ,
  Pink , Magenta , Crimson , Red ,
  Orange , Amber , Yellow , Brown ,
  Olive , Steel , Mauve , Taupe
}
 
enum  SystemColor {
  AltHigh , AltLow , AltMedium , AltMediumHigh ,
  AltMediumLow , BaseHigh , BaseLow , BaseMedium ,
  BaseMediumHigh , BaseMediumLow , ChromeAltLow , ChromeBlackHigh ,
  ChromeBlackLow , ChromeBlackMediumLow , ChromeBlackMedium , ChromeDisabledHigh ,
  ChromeDisabledLow , ChromeHigh , ChromeLow , ChromeMedium ,
  ChromeMediumLow , ChromeWhite , ListLow , ListMedium
}
 

Signals

void themeChanged ()
 
void accentChanged ()
 
void foregroundChanged ()
 
void backgroundChanged ()
 
void paletteChanged ()
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.
 

Public Member Functions

 QQuickUniversalStyle (QObject *parent=nullptr)
 
Theme theme () const
 
void setTheme (Theme theme)
 
void inheritTheme (Theme theme)
 
void propagateTheme ()
 
void resetTheme ()
 
QVariant accent () const
 
void setAccent (const QVariant &accent)
 
void inheritAccent (QRgb accent)
 
void propagateAccent ()
 
void resetAccent ()
 
QVariant foreground () const
 
void setForeground (const QVariant &foreground)
 
void inheritForeground (QRgb foreground, bool has)
 
void propagateForeground ()
 
void resetForeground ()
 
QVariant background () const
 
void setBackground (const QVariant &background)
 
void inheritBackground (QRgb background, bool has)
 
void propagateBackground ()
 
void resetBackground ()
 
Q_INVOKABLE QColor color (Color color) const
 
QColor altHighColor () const
 
QColor altLowColor () const
 
QColor altMediumColor () const
 
QColor altMediumHighColor () const
 
QColor altMediumLowColor () const
 
QColor baseHighColor () const
 
QColor baseLowColor () const
 
QColor baseMediumColor () const
 
QColor baseMediumHighColor () const
 
QColor baseMediumLowColor () const
 
QColor chromeAltLowColor () const
 
QColor chromeBlackHighColor () const
 
QColor chromeBlackLowColor () const
 
QColor chromeBlackMediumLowColor () const
 
QColor chromeBlackMediumColor () const
 
QColor chromeDisabledHighColor () const
 
QColor chromeDisabledLowColor () const
 
QColor chromeHighColor () const
 
QColor chromeLowColor () const
 
QColor chromeMediumColor () const
 
QColor chromeMediumLowColor () const
 
QColor chromeWhiteColor () const
 
QColor listLowColor () const
 
QColor listMediumColor () const
 
QColor systemColor (SystemColor role) const
 
- Public Member Functions inherited from QQuickAttachedPropertyPropagator
 QQuickAttachedPropertyPropagator (QObject *parent=nullptr)
 Constructs a QQuickAttachedPropertyPropagator with the given parent.
 
 ~QQuickAttachedPropertyPropagator ()
 Destroys the QQuickAttachedPropertyPropagator.
 
QList< QQuickAttachedPropertyPropagator * > attachedChildren () const
 This function returns the attached children of this attached object.
 
QQuickAttachedPropertyPropagatorattachedParent () const
 This function returns the attached parent of this attached object.
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
 
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
 
QString objectName () const
 
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
 
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
 
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
 
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
 
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
 
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
 
QThreadthread () const
 Returns the thread in which the object lives.
 
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
 
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 Kills the timer with timer identifier, id.
 
void killTimer (Qt::TimerId id)
 
template<typename T >
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
 
template<typename T >
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
 
template<typename T >
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename T >
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const QObjectListchildren () const
 Returns a list of child objects.
 
void setParent (QObject *parent)
 Makes the object a child of parent.
 
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
 
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
 
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
 
bool setProperty (const char *name, QVariant &&value)
 
QVariant property (const char *name) const
 Returns the value of the object's name property.
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 Returns a pointer to the parent object.
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.
 

Static Public Member Functions

static QQuickUniversalStyleqmlAttachedProperties (QObject *object)
 
static void initGlobals ()
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 

Protected Member Functions

void attachedParentChange (QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent) override
 This function is called whenever the attached parent of this QQuickAttachedPropertyPropagator changes from oldParent to newParent.
 
- Protected Member Functions inherited from QQuickAttachedPropertyPropagator
void initialize ()
 Finds and sets the attached parent for this attached object, and then does the same for its children.
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
 
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
 
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 

Properties

Theme theme
 
QVariant accent
 
QVariant foreground
 
QVariant background
 
QColor altHighColor
 
QColor altLowColor
 
QColor altMediumColor
 
QColor altMediumHighColor
 
QColor altMediumLowColor
 
QColor baseHighColor
 
QColor baseLowColor
 
QColor baseMediumColor
 
QColor baseMediumHighColor
 
QColor baseMediumLowColor
 
QColor chromeAltLowColor
 
QColor chromeBlackHighColor
 
QColor chromeBlackLowColor
 
QColor chromeBlackMediumLowColor
 
QColor chromeBlackMediumColor
 
QColor chromeDisabledHighColor
 
QColor chromeDisabledLowColor
 
QColor chromeHighColor
 
QColor chromeLowColor
 
QColor chromeMediumColor
 
QColor chromeMediumLowColor
 
QColor chromeWhiteColor
 
QColor listLowColor
 
QColor listMediumColor
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 

Detailed Description

Definition at line 27 of file qquickuniversalstyle_p.h.

Member Enumeration Documentation

◆ Color

Enumerator
Lime 
Green 
Emerald 
Teal 
Cyan 
Cobalt 
Indigo 
Violet 
Pink 
Magenta 
Crimson 
Red 
Orange 
Amber 
Yellow 
Brown 
Olive 
Steel 
Mauve 
Taupe 

Definition at line 79 of file qquickuniversalstyle_p.h.

◆ SystemColor

Enumerator
AltHigh 
AltLow 
AltMedium 
AltMediumHigh 
AltMediumLow 
BaseHigh 
BaseLow 
BaseMedium 
BaseMediumHigh 
BaseMediumLow 
ChromeAltLow 
ChromeBlackHigh 
ChromeBlackLow 
ChromeBlackMediumLow 
ChromeBlackMedium 
ChromeDisabledHigh 
ChromeDisabledLow 
ChromeHigh 
ChromeLow 
ChromeMedium 
ChromeMediumLow 
ChromeWhite 
ListLow 
ListMedium 

Definition at line 148 of file qquickuniversalstyle_p.h.

◆ Theme

Enumerator
Light 
Dark 
System 

Definition at line 70 of file qquickuniversalstyle_p.h.

Constructor & Destructor Documentation

◆ QQuickUniversalStyle()

QQuickUniversalStyle::QQuickUniversalStyle ( QObject * parent = nullptr)
explicit

Definition at line 123 of file qquickuniversalstyle.cpp.

References QQuickAttachedPropertyPropagator::initialize().

Referenced by qmlAttachedProperties().

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

Member Function Documentation

◆ accent()

QVariant QQuickUniversalStyle::accent ( ) const

Definition at line 188 of file qquickuniversalstyle.cpp.

References QColor::fromRgba().

+ Here is the call graph for this function:

◆ accentChanged

void QQuickUniversalStyle::accentChanged ( )
signal

Referenced by inheritAccent(), and setAccent().

+ Here is the caller graph for this function:

◆ altHighColor()

QColor QQuickUniversalStyle::altHighColor ( ) const

Definition at line 353 of file qquickuniversalstyle.cpp.

References AltHigh, and systemColor().

+ Here is the call graph for this function:

◆ altLowColor()

QColor QQuickUniversalStyle::altLowColor ( ) const

Definition at line 358 of file qquickuniversalstyle.cpp.

References AltLow, and systemColor().

+ Here is the call graph for this function:

◆ altMediumColor()

QColor QQuickUniversalStyle::altMediumColor ( ) const

Definition at line 363 of file qquickuniversalstyle.cpp.

References AltMedium, and systemColor().

+ Here is the call graph for this function:

◆ altMediumHighColor()

QColor QQuickUniversalStyle::altMediumHighColor ( ) const

Definition at line 368 of file qquickuniversalstyle.cpp.

References AltMediumHigh, and systemColor().

+ Here is the call graph for this function:

◆ altMediumLowColor()

QColor QQuickUniversalStyle::altMediumLowColor ( ) const

Definition at line 373 of file qquickuniversalstyle.cpp.

References AltMediumLow, and systemColor().

+ Here is the call graph for this function:

◆ attachedParentChange()

void QQuickUniversalStyle::attachedParentChange ( QQuickAttachedPropertyPropagator * newParent,
QQuickAttachedPropertyPropagator * oldParent )
overrideprotectedvirtual

This function is called whenever the attached parent of this QQuickAttachedPropertyPropagator changes from oldParent to newParent.

Subclasses should reimplement this function to inherit attached properties from newParent.

\quotefromfile ../../examples/quickcontrols/attachedstyleproperties/MyStyle/mystyle.cpp \skipto attachedParentChange \printuntil } \printuntil }

Reimplemented from QQuickAttachedPropertyPropagator.

Definition at line 478 of file qquickuniversalstyle.cpp.

References inheritAccent(), inheritBackground(), inheritForeground(), inheritTheme(), and Q_UNUSED.

+ Here is the call graph for this function:

◆ background()

QVariant QQuickUniversalStyle::background ( ) const

Definition at line 293 of file qquickuniversalstyle.cpp.

References altHighColor, and QColor::fromRgba().

+ Here is the call graph for this function:

◆ backgroundChanged

void QQuickUniversalStyle::backgroundChanged ( )
signal

Referenced by inheritBackground(), inheritTheme(), setBackground(), and setTheme().

+ Here is the caller graph for this function:

◆ baseHighColor()

QColor QQuickUniversalStyle::baseHighColor ( ) const

Definition at line 378 of file qquickuniversalstyle.cpp.

References BaseHigh, and systemColor().

+ Here is the call graph for this function:

◆ baseLowColor()

QColor QQuickUniversalStyle::baseLowColor ( ) const

Definition at line 383 of file qquickuniversalstyle.cpp.

References BaseLow, and systemColor().

+ Here is the call graph for this function:

◆ baseMediumColor()

QColor QQuickUniversalStyle::baseMediumColor ( ) const

Definition at line 388 of file qquickuniversalstyle.cpp.

References BaseMedium, and systemColor().

+ Here is the call graph for this function:

◆ baseMediumHighColor()

QColor QQuickUniversalStyle::baseMediumHighColor ( ) const

Definition at line 393 of file qquickuniversalstyle.cpp.

References BaseMediumHigh, and systemColor().

+ Here is the call graph for this function:

◆ baseMediumLowColor()

QColor QQuickUniversalStyle::baseMediumLowColor ( ) const

Definition at line 398 of file qquickuniversalstyle.cpp.

References BaseMediumLow, and systemColor().

+ Here is the call graph for this function:

◆ chromeAltLowColor()

QColor QQuickUniversalStyle::chromeAltLowColor ( ) const

Definition at line 403 of file qquickuniversalstyle.cpp.

References ChromeAltLow, and systemColor().

+ Here is the call graph for this function:

◆ chromeBlackHighColor()

QColor QQuickUniversalStyle::chromeBlackHighColor ( ) const

Definition at line 408 of file qquickuniversalstyle.cpp.

References ChromeBlackHigh, and systemColor().

+ Here is the call graph for this function:

◆ chromeBlackLowColor()

QColor QQuickUniversalStyle::chromeBlackLowColor ( ) const

Definition at line 413 of file qquickuniversalstyle.cpp.

References ChromeBlackLow, and systemColor().

+ Here is the call graph for this function:

◆ chromeBlackMediumColor()

QColor QQuickUniversalStyle::chromeBlackMediumColor ( ) const

Definition at line 423 of file qquickuniversalstyle.cpp.

References ChromeBlackMedium, and systemColor().

+ Here is the call graph for this function:

◆ chromeBlackMediumLowColor()

QColor QQuickUniversalStyle::chromeBlackMediumLowColor ( ) const

Definition at line 418 of file qquickuniversalstyle.cpp.

References ChromeBlackMediumLow, and systemColor().

+ Here is the call graph for this function:

◆ chromeDisabledHighColor()

QColor QQuickUniversalStyle::chromeDisabledHighColor ( ) const

Definition at line 428 of file qquickuniversalstyle.cpp.

References ChromeDisabledHigh, and systemColor().

+ Here is the call graph for this function:

◆ chromeDisabledLowColor()

QColor QQuickUniversalStyle::chromeDisabledLowColor ( ) const

Definition at line 433 of file qquickuniversalstyle.cpp.

References ChromeDisabledLow, and systemColor().

+ Here is the call graph for this function:

◆ chromeHighColor()

QColor QQuickUniversalStyle::chromeHighColor ( ) const

Definition at line 438 of file qquickuniversalstyle.cpp.

References ChromeHigh, and systemColor().

+ Here is the call graph for this function:

◆ chromeLowColor()

QColor QQuickUniversalStyle::chromeLowColor ( ) const

Definition at line 443 of file qquickuniversalstyle.cpp.

References ChromeLow, and systemColor().

+ Here is the call graph for this function:

◆ chromeMediumColor()

QColor QQuickUniversalStyle::chromeMediumColor ( ) const

Definition at line 448 of file qquickuniversalstyle.cpp.

References ChromeMedium, and systemColor().

+ Here is the call graph for this function:

◆ chromeMediumLowColor()

QColor QQuickUniversalStyle::chromeMediumLowColor ( ) const

Definition at line 453 of file qquickuniversalstyle.cpp.

References ChromeMediumLow, and systemColor().

+ Here is the call graph for this function:

◆ chromeWhiteColor()

QColor QQuickUniversalStyle::chromeWhiteColor ( ) const

Definition at line 458 of file qquickuniversalstyle.cpp.

References ChromeWhite, and systemColor().

+ Here is the call graph for this function:

◆ color()

QColor QQuickUniversalStyle::color ( Color color) const

Definition at line 348 of file qquickuniversalstyle.cpp.

References qquickuniversal_accent_color().

+ Here is the call graph for this function:

◆ foreground()

QVariant QQuickUniversalStyle::foreground ( ) const

Definition at line 238 of file qquickuniversalstyle.cpp.

References baseHighColor, and QColor::fromRgba().

+ Here is the call graph for this function:

◆ foregroundChanged

void QQuickUniversalStyle::foregroundChanged ( )
signal

Referenced by inheritForeground(), inheritTheme(), setForeground(), and setTheme().

+ Here is the caller graph for this function:

◆ inheritAccent()

void QQuickUniversalStyle::inheritAccent ( QRgb accent)

Definition at line 208 of file qquickuniversalstyle.cpp.

References accent, accentChanged(), emit, and propagateAccent().

Referenced by attachedParentChange(), and resetAccent().

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

◆ inheritBackground()

void QQuickUniversalStyle::inheritBackground ( QRgb background,
bool has )

Definition at line 316 of file qquickuniversalstyle.cpp.

References background, backgroundChanged(), emit, and propagateBackground().

Referenced by attachedParentChange(), and resetBackground().

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

◆ inheritForeground()

void QQuickUniversalStyle::inheritForeground ( QRgb foreground,
bool has )

Definition at line 261 of file qquickuniversalstyle.cpp.

References emit, foreground, foregroundChanged(), and propagateForeground().

Referenced by attachedParentChange(), and resetForeground().

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

◆ inheritTheme()

void QQuickUniversalStyle::inheritTheme ( Theme theme)

Definition at line 155 of file qquickuniversalstyle.cpp.

References backgroundChanged(), emit, foregroundChanged(), paletteChanged(), propagateTheme(), theme, and themeChanged().

Referenced by attachedParentChange(), and resetTheme().

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

◆ initGlobals()

void QQuickUniversalStyle::initGlobals ( )
static

Definition at line 507 of file qquickuniversalstyle.cpp.

References QColor::fromString(), GlobalAccent, GlobalBackground, GlobalForeground, GlobalTheme, HasGlobalBackground, HasGlobalForeground, ok, qquickuniversal_accent_color(), qquickuniversal_effective_theme(), QStringLiteral, qWarning, resolveSetting(), settings, and QQuickStylePrivate::settings().

Referenced by QtQuickControls2UniversalStylePlugin::initializeTheme().

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

◆ listLowColor()

QColor QQuickUniversalStyle::listLowColor ( ) const

Definition at line 463 of file qquickuniversalstyle.cpp.

References ListLow, and systemColor().

+ Here is the call graph for this function:

◆ listMediumColor()

QColor QQuickUniversalStyle::listMediumColor ( ) const

Definition at line 468 of file qquickuniversalstyle.cpp.

References ListMedium, and systemColor().

+ Here is the call graph for this function:

◆ paletteChanged

void QQuickUniversalStyle::paletteChanged ( )
signal

Referenced by inheritTheme(), and setTheme().

+ Here is the caller graph for this function:

◆ propagateAccent()

void QQuickUniversalStyle::propagateAccent ( )

Definition at line 218 of file qquickuniversalstyle.cpp.

References QQuickAttachedPropertyPropagator::attachedChildren(), and child.

Referenced by inheritAccent(), and setAccent().

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

◆ propagateBackground()

void QQuickUniversalStyle::propagateBackground ( )

Definition at line 327 of file qquickuniversalstyle.cpp.

References QQuickAttachedPropertyPropagator::attachedChildren(), and child.

Referenced by inheritBackground(), and setBackground().

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

◆ propagateForeground()

void QQuickUniversalStyle::propagateForeground ( )

Definition at line 272 of file qquickuniversalstyle.cpp.

References QQuickAttachedPropertyPropagator::attachedChildren(), and child.

Referenced by inheritForeground(), and setForeground().

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

◆ propagateTheme()

void QQuickUniversalStyle::propagateTheme ( )

Definition at line 168 of file qquickuniversalstyle.cpp.

References QQuickAttachedPropertyPropagator::attachedChildren(), and child.

Referenced by inheritTheme(), and setTheme().

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

◆ qmlAttachedProperties()

QQuickUniversalStyle * QQuickUniversalStyle::qmlAttachedProperties ( QObject * object)
static

Definition at line 130 of file qquickuniversalstyle.cpp.

References QQuickUniversalStyle().

+ Here is the call graph for this function:

◆ resetAccent()

void QQuickUniversalStyle::resetAccent ( )

Definition at line 228 of file qquickuniversalstyle.cpp.

References QQuickAttachedPropertyPropagator::attachedParent(), GlobalAccent, and inheritAccent().

+ Here is the call graph for this function:

◆ resetBackground()

void QQuickUniversalStyle::resetBackground ( )

Definition at line 337 of file qquickuniversalstyle.cpp.

References QQuickAttachedPropertyPropagator::attachedParent(), GlobalBackground, and inheritBackground().

+ Here is the call graph for this function:

◆ resetForeground()

void QQuickUniversalStyle::resetForeground ( )

Definition at line 282 of file qquickuniversalstyle.cpp.

References QQuickAttachedPropertyPropagator::attachedParent(), GlobalForeground, and inheritForeground().

+ Here is the call graph for this function:

◆ resetTheme()

void QQuickUniversalStyle::resetTheme ( )

Definition at line 178 of file qquickuniversalstyle.cpp.

References QQuickAttachedPropertyPropagator::attachedParent(), GlobalTheme, and inheritTheme().

+ Here is the call graph for this function:

◆ setAccent()

void QQuickUniversalStyle::setAccent ( const QVariant & accent)

Definition at line 193 of file qquickuniversalstyle.cpp.

References accent, accentChanged(), emit, propagateAccent(), QRgb, and var.

+ Here is the call graph for this function:

◆ setBackground()

void QQuickUniversalStyle::setBackground ( const QVariant & background)

Definition at line 300 of file qquickuniversalstyle.cpp.

References background, backgroundChanged(), emit, propagateBackground(), QRgb, and var.

+ Here is the call graph for this function:

◆ setForeground()

void QQuickUniversalStyle::setForeground ( const QVariant & foreground)

Definition at line 245 of file qquickuniversalstyle.cpp.

References emit, foreground, foregroundChanged(), propagateForeground(), QRgb, and var.

+ Here is the call graph for this function:

◆ setTheme()

void QQuickUniversalStyle::setTheme ( Theme theme)

Definition at line 140 of file qquickuniversalstyle.cpp.

References backgroundChanged(), emit, foregroundChanged(), paletteChanged(), propagateTheme(), qquickuniversal_effective_theme(), theme, and themeChanged().

+ Here is the call graph for this function:

◆ systemColor()

QColor QQuickUniversalStyle::systemColor ( SystemColor role) const

Definition at line 473 of file qquickuniversalstyle.cpp.

References Dark, QColor::fromRgba(), qquickuniversal_dark_color(), and qquickuniversal_light_color().

Referenced by altHighColor(), altLowColor(), altMediumColor(), altMediumHighColor(), altMediumLowColor(), baseHighColor(), baseLowColor(), baseMediumColor(), baseMediumHighColor(), baseMediumLowColor(), chromeAltLowColor(), chromeBlackHighColor(), chromeBlackLowColor(), chromeBlackMediumColor(), chromeBlackMediumLowColor(), chromeDisabledHighColor(), chromeDisabledLowColor(), chromeHighColor(), chromeLowColor(), chromeMediumColor(), chromeMediumLowColor(), chromeWhiteColor(), listLowColor(), and listMediumColor().

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

◆ theme()

QQuickUniversalStyle::Theme QQuickUniversalStyle::theme ( ) const

Definition at line 135 of file qquickuniversalstyle.cpp.

◆ themeChanged

void QQuickUniversalStyle::themeChanged ( )
signal

Referenced by inheritTheme(), and setTheme().

+ Here is the caller graph for this function:

Property Documentation

◆ accent

QVariant QQuickUniversalStyle::accent
readwrite

Definition at line 31 of file qquickuniversalstyle_p.h.

Referenced by inheritAccent(), and setAccent().

◆ altHighColor

QColor QQuickUniversalStyle::altHighColor
read

Definition at line 35 of file qquickuniversalstyle_p.h.

Referenced by background().

◆ altLowColor

QColor QQuickUniversalStyle::altLowColor
read

Definition at line 36 of file qquickuniversalstyle_p.h.

◆ altMediumColor

QColor QQuickUniversalStyle::altMediumColor
read

Definition at line 37 of file qquickuniversalstyle_p.h.

◆ altMediumHighColor

QColor QQuickUniversalStyle::altMediumHighColor
read

Definition at line 38 of file qquickuniversalstyle_p.h.

◆ altMediumLowColor

QColor QQuickUniversalStyle::altMediumLowColor
read

Definition at line 39 of file qquickuniversalstyle_p.h.

◆ background

QVariant QQuickUniversalStyle::background
readwrite

Definition at line 33 of file qquickuniversalstyle_p.h.

Referenced by inheritBackground(), and setBackground().

◆ baseHighColor

QColor QQuickUniversalStyle::baseHighColor
read

Definition at line 40 of file qquickuniversalstyle_p.h.

Referenced by foreground().

◆ baseLowColor

QColor QQuickUniversalStyle::baseLowColor
read

Definition at line 41 of file qquickuniversalstyle_p.h.

◆ baseMediumColor

QColor QQuickUniversalStyle::baseMediumColor
read

Definition at line 42 of file qquickuniversalstyle_p.h.

◆ baseMediumHighColor

QColor QQuickUniversalStyle::baseMediumHighColor
read

Definition at line 43 of file qquickuniversalstyle_p.h.

◆ baseMediumLowColor

QColor QQuickUniversalStyle::baseMediumLowColor
read

Definition at line 44 of file qquickuniversalstyle_p.h.

◆ chromeAltLowColor

QColor QQuickUniversalStyle::chromeAltLowColor
read

Definition at line 45 of file qquickuniversalstyle_p.h.

◆ chromeBlackHighColor

QColor QQuickUniversalStyle::chromeBlackHighColor
read

Definition at line 46 of file qquickuniversalstyle_p.h.

◆ chromeBlackLowColor

QColor QQuickUniversalStyle::chromeBlackLowColor
read

Definition at line 47 of file qquickuniversalstyle_p.h.

◆ chromeBlackMediumColor

QColor QQuickUniversalStyle::chromeBlackMediumColor
read

Definition at line 49 of file qquickuniversalstyle_p.h.

◆ chromeBlackMediumLowColor

QColor QQuickUniversalStyle::chromeBlackMediumLowColor
read

Definition at line 48 of file qquickuniversalstyle_p.h.

◆ chromeDisabledHighColor

QColor QQuickUniversalStyle::chromeDisabledHighColor
read

Definition at line 50 of file qquickuniversalstyle_p.h.

◆ chromeDisabledLowColor

QColor QQuickUniversalStyle::chromeDisabledLowColor
read

Definition at line 51 of file qquickuniversalstyle_p.h.

◆ chromeHighColor

QColor QQuickUniversalStyle::chromeHighColor
read

Definition at line 52 of file qquickuniversalstyle_p.h.

◆ chromeLowColor

QColor QQuickUniversalStyle::chromeLowColor
read

Definition at line 53 of file qquickuniversalstyle_p.h.

◆ chromeMediumColor

QColor QQuickUniversalStyle::chromeMediumColor
read

Definition at line 54 of file qquickuniversalstyle_p.h.

◆ chromeMediumLowColor

QColor QQuickUniversalStyle::chromeMediumLowColor
read

Definition at line 55 of file qquickuniversalstyle_p.h.

◆ chromeWhiteColor

QColor QQuickUniversalStyle::chromeWhiteColor
read

Definition at line 56 of file qquickuniversalstyle_p.h.

◆ foreground

QVariant QQuickUniversalStyle::foreground
readwrite

Definition at line 32 of file qquickuniversalstyle_p.h.

Referenced by inheritForeground(), and setForeground().

◆ listLowColor

QColor QQuickUniversalStyle::listLowColor
read

Definition at line 57 of file qquickuniversalstyle_p.h.

◆ listMediumColor

QColor QQuickUniversalStyle::listMediumColor
read

Definition at line 58 of file qquickuniversalstyle_p.h.

◆ theme

Theme QQuickUniversalStyle::theme
readwrite

Definition at line 30 of file qquickuniversalstyle_p.h.

Referenced by inheritTheme(), and setTheme().


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