Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQuickMaterialStyle Class Reference

#include <qquickmaterialstyle_p.h>

Inheritance diagram for QQuickMaterialStyle:
Collaboration diagram for QQuickMaterialStyle:

Public Types

enum  Theme { Light , Dark , System }
enum  Variant { Normal , Dense }
enum  Color {
  Red , Pink , Purple , DeepPurple ,
  Indigo , Blue , LightBlue , Cyan ,
  Teal , Green , LightGreen , Lime ,
  Yellow , Amber , Orange , DeepOrange ,
  Brown , Grey , BlueGrey
}
enum  Shade {
  Shade50 , Shade100 , Shade200 , Shade300 ,
  Shade400 , Shade500 , Shade600 , Shade700 ,
  Shade800 , Shade900 , ShadeA100 , ShadeA200 ,
  ShadeA400 , ShadeA700
}
enum class  RoundedScale {
  NotRounded , ExtraSmallScale = 4 , SmallScale = 8 , MediumScale = 12 ,
  LargeScale = 16 , ExtraLargeScale = 28 , FullScale = 0xFF
}
enum class  ContainerStyle { Filled , Outlined }

Signals

void themeChanged ()
void primaryChanged ()
void accentChanged ()
void foregroundChanged ()
void backgroundChanged ()
void elevationChanged ()
void themeOrAccentChanged ()
void primaryHighlightedTextColorChanged ()
void dialogColorChanged ()
void tooltipColorChanged ()
void toolBarColorChanged ()
void toolTextColorChanged ()
void roundedScaleChanged ()
void containerStyleChanged ()
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

 QQuickMaterialStyle (QObject *parent=nullptr)
Theme theme () const
void setTheme (Theme theme)
void inheritTheme (Theme theme)
void propagateTheme ()
void resetTheme ()
void themeChange ()
QVariant primary () const
void setPrimary (const QVariant &accent)
void inheritPrimary (uint primary, bool custom)
void propagatePrimary ()
void resetPrimary ()
void primaryChange ()
QVariant accent () const
void setAccent (const QVariant &accent)
void inheritAccent (uint accent, bool custom)
void propagateAccent ()
void resetAccent ()
void accentChange ()
QVariant foreground () const
void setForeground (const QVariant &foreground)
void inheritForeground (uint foreground, bool custom, bool has)
void propagateForeground ()
void resetForeground ()
void foregroundChange ()
QVariant background () const
void setBackground (const QVariant &background)
void inheritBackground (uint background, bool custom, bool has)
void propagateBackground ()
void resetBackground ()
void backgroundChange ()
int elevation () const
void setElevation (int elevation)
void resetElevation ()
void elevationChange ()
RoundedScale roundedScale () const
void setRoundedScale (RoundedScale roundedScale)
void resetRoundedScale ()
ContainerStyle containerStyle () const
void setContainerStyle (ContainerStyle containerStyle)
void resetContainerStyle ()
QColor primaryColor () const
QColor accentColor () const
QColor backgroundColor () const
QColor primaryTextColor () const
QColor primaryHighlightedTextColor () const
QColor secondaryTextColor () const
QColor hintTextColor () const
QColor textSelectionColor () const
QColor dropShadowColor () const
QColor dividerColor () const
QColor iconColor () const
QColor iconDisabledColor () const
Q_INVOKABLE QColor buttonColor (Theme theme, const QVariant &background, const QVariant &accent, bool enabled, bool flat, bool highlighted, bool checked) const
QColor frameColor () const
QColor rippleColor () const
QColor highlightedRippleColor () const
QColor switchUncheckedTrackColor () const
QColor switchCheckedTrackColor () const
QColor switchDisabledUncheckedTrackColor () const
QColor switchDisabledCheckedTrackColor () const
QColor switchDisabledUncheckedTrackBorderColor () const
QColor switchUncheckedHandleColor () const
QColor switchUncheckedHoveredHandleColor () const
QColor switchCheckedHandleColor () const
QColor switchDisabledUncheckedHandleColor () const
QColor switchDisabledCheckedHandleColor () const
QColor switchDisabledCheckedIconColor () const
QColor switchDisabledUncheckedIconColor () const
QColor scrollBarColor () const
QColor scrollBarHoveredColor () const
QColor scrollBarPressedColor () const
QColor dialogColor () const
QColor backgroundDimColor () const
QColor listHighlightColor () const
QColor tooltipColor () const
QColor toolBarColor () const
QColor toolTextColor () const
QColor spinBoxDisabledIconColor () const
QColor sliderDisabledColor () const
QColor textFieldFilledContainerColor () const
Q_INVOKABLE QColor color (Color color, Shade shade=Shade500) const
Q_INVOKABLE QColor shade (const QColor &color, Shade shade) const
int touchTarget () const
int buttonVerticalPadding () const
Q_INVOKABLE int buttonLeftPadding (bool flat, bool hasIcon) const
Q_INVOKABLE int buttonRightPadding (bool flat, bool hasIcon, bool hasText) const
int buttonHeight () const
int delegateHeight () const
int dialogButtonBoxHeight () const
int dialogTitleFontPixelSize () const
RoundedScale dialogRoundedScale () const
int frameVerticalPadding () const
int menuItemHeight () const
int menuItemVerticalPadding () const
int switchIndicatorWidth () const
int switchIndicatorHeight () const
int switchNormalHandleHeight () const
int switchCheckedHandleHeight () const
int switchLargestHandleHeight () const
int switchDelegateVerticalPadding () const
int textFieldHeight () const
int textFieldHorizontalPadding () const
int textFieldVerticalPadding () const
int tooltipHeight () 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 isQmlObjectType () const
 Returns whether the object has been created by the QML engine or ownership has been explicitly set via QJSEngine::setObjectOwnership().
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 QQuickMaterialStyleqmlAttachedProperties (QObject *object)
static void initGlobals ()
static Variant variant ()
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 primary
QVariant accent
QVariant foreground
QVariant background
int elevation
RoundedScale roundedScale
ContainerStyle containerStyle
QColor primaryColor
QColor accentColor
QColor backgroundColor
QColor primaryTextColor
QColor primaryHighlightedTextColor
QColor secondaryTextColor
QColor hintTextColor
QColor textSelectionColor
QColor dropShadowColor
QColor dividerColor
QColor iconColor
QColor iconDisabledColor
QColor frameColor
QColor rippleColor
QColor highlightedRippleColor
QColor switchUncheckedTrackColor
QColor switchCheckedTrackColor
QColor switchUncheckedHandleColor
QColor switchUncheckedHoveredHandleColor
QColor switchDisabledUncheckedTrackColor
QColor switchDisabledCheckedTrackColor
QColor switchDisabledUncheckedTrackBorderColor
QColor switchCheckedHandleColor
QColor switchDisabledUncheckedHandleColor
QColor switchDisabledCheckedHandleColor
QColor switchDisabledCheckedIconColor
QColor switchDisabledUncheckedIconColor
QColor scrollBarColor
QColor scrollBarHoveredColor
QColor scrollBarPressedColor
QColor dialogColor
QColor backgroundDimColor
QColor listHighlightColor
QColor tooltipColor
QColor toolBarColor
QColor toolTextColor
QColor spinBoxDisabledIconColor
QColor sliderDisabledColor
QColor textFieldFilledContainerColor
int touchTarget
int buttonVerticalPadding
int buttonHeight
int delegateHeight
int dialogButtonBoxHeight
int dialogTitleFontPixelSize
RoundedScale dialogRoundedScale
int frameVerticalPadding
int menuItemHeight
int menuItemVerticalPadding
int switchIndicatorWidth
int switchIndicatorHeight
int switchNormalHandleHeight
int switchCheckedHandleHeight
int switchLargestHandleHeight
int switchDelegateVerticalPadding
int textFieldHeight
int textFieldHorizontalPadding
int textFieldVerticalPadding
int tooltipHeight
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 26 of file qquickmaterialstyle_p.h.

Member Enumeration Documentation

◆ Color

Enumerator
Red 
Pink 
Purple 
DeepPurple 
Indigo 
Blue 
LightBlue 
Cyan 
Teal 
Green 
LightGreen 
Lime 
Yellow 
Amber 
Orange 
DeepOrange 
Brown 
Grey 
BlueGrey 

Definition at line 118 of file qquickmaterialstyle_p.h.

◆ ContainerStyle

Enumerator
Filled 
Outlined 

Definition at line 167 of file qquickmaterialstyle_p.h.

◆ RoundedScale

Enumerator
NotRounded 
ExtraSmallScale 
SmallScale 
MediumScale 
LargeScale 
ExtraLargeScale 
FullScale 

Definition at line 157 of file qquickmaterialstyle_p.h.

◆ Shade

Enumerator
Shade50 
Shade100 
Shade200 
Shade300 
Shade400 
Shade500 
Shade600 
Shade700 
Shade800 
Shade900 
ShadeA100 
ShadeA200 
ShadeA400 
ShadeA700 

Definition at line 140 of file qquickmaterialstyle_p.h.

◆ Theme

Enumerator
Light 
Dark 
System 

Definition at line 107 of file qquickmaterialstyle_p.h.

◆ Variant

Enumerator
Normal 
Dense 

Definition at line 113 of file qquickmaterialstyle_p.h.

Constructor & Destructor Documentation

◆ QQuickMaterialStyle()

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

Definition at line 441 of file qquickmaterialstyle.cpp.

Member Function Documentation

◆ accent()

QVariant QQuickMaterialStyle::accent ( ) const

Definition at line 618 of file qquickmaterialstyle.cpp.

◆ accentChange()

void QQuickMaterialStyle::accentChange ( )

Definition at line 675 of file qquickmaterialstyle.cpp.

◆ accentChanged

void QQuickMaterialStyle::accentChanged ( )
signal

◆ accentColor()

QColor QQuickMaterialStyle::accentColor ( ) const

Definition at line 934 of file qquickmaterialstyle.cpp.

◆ attachedParentChange()

void QQuickMaterialStyle::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 1567 of file qquickmaterialstyle.cpp.

◆ background()

QVariant QQuickMaterialStyle::background ( ) const

Definition at line 764 of file qquickmaterialstyle.cpp.

◆ backgroundChange()

void QQuickMaterialStyle::backgroundChange ( )

Definition at line 845 of file qquickmaterialstyle.cpp.

◆ backgroundChanged

void QQuickMaterialStyle::backgroundChanged ( )
signal

◆ backgroundColor()

QColor QQuickMaterialStyle::backgroundColor ( ) const

Definition at line 953 of file qquickmaterialstyle.cpp.

◆ backgroundDimColor()

QColor QQuickMaterialStyle::backgroundDimColor ( ) const

Definition at line 1158 of file qquickmaterialstyle.cpp.

◆ buttonColor()

QColor QQuickMaterialStyle::buttonColor ( Theme theme,
const QVariant & background,
const QVariant & accent,
bool enabled,
bool flat,
bool highlighted,
bool checked ) const

Definition at line 1007 of file qquickmaterialstyle.cpp.

◆ buttonHeight()

int QQuickMaterialStyle::buttonHeight ( ) const

Definition at line 1362 of file qquickmaterialstyle.cpp.

◆ buttonLeftPadding()

int QQuickMaterialStyle::buttonLeftPadding ( bool flat,
bool hasIcon ) const

Definition at line 1342 of file qquickmaterialstyle.cpp.

◆ buttonRightPadding()

int QQuickMaterialStyle::buttonRightPadding ( bool flat,
bool hasIcon,
bool hasText ) const

Definition at line 1350 of file qquickmaterialstyle.cpp.

◆ buttonVerticalPadding()

int QQuickMaterialStyle::buttonVerticalPadding ( ) const

Definition at line 1336 of file qquickmaterialstyle.cpp.

◆ color()

QColor QQuickMaterialStyle::color ( QQuickMaterialStyle::Color color,
QQuickMaterialStyle::Shade shade = Shade500 ) const

Definition at line 1233 of file qquickmaterialstyle.cpp.

◆ containerStyle()

QQuickMaterialStyle::ContainerStyle QQuickMaterialStyle::containerStyle ( ) const

Definition at line 896 of file qquickmaterialstyle.cpp.

◆ containerStyleChanged

void QQuickMaterialStyle::containerStyleChanged ( )
signal

◆ delegateHeight()

int QQuickMaterialStyle::delegateHeight ( ) const

Definition at line 1368 of file qquickmaterialstyle.cpp.

◆ dialogButtonBoxHeight()

int QQuickMaterialStyle::dialogButtonBoxHeight ( ) const

Definition at line 1374 of file qquickmaterialstyle.cpp.

◆ dialogColor()

QColor QQuickMaterialStyle::dialogColor ( ) const

Definition at line 1151 of file qquickmaterialstyle.cpp.

◆ dialogColorChanged

void QQuickMaterialStyle::dialogColorChanged ( )
signal

◆ dialogRoundedScale()

QQuickMaterialStyle::RoundedScale QQuickMaterialStyle::dialogRoundedScale ( ) const

Definition at line 1385 of file qquickmaterialstyle.cpp.

◆ dialogTitleFontPixelSize()

int QQuickMaterialStyle::dialogTitleFontPixelSize ( ) const

Definition at line 1379 of file qquickmaterialstyle.cpp.

◆ dividerColor()

QColor QQuickMaterialStyle::dividerColor ( ) const

Definition at line 992 of file qquickmaterialstyle.cpp.

◆ dropShadowColor()

QColor QQuickMaterialStyle::dropShadowColor ( ) const

Definition at line 987 of file qquickmaterialstyle.cpp.

◆ elevation()

int QQuickMaterialStyle::elevation ( ) const

Definition at line 853 of file qquickmaterialstyle.cpp.

◆ elevationChange()

void QQuickMaterialStyle::elevationChange ( )

Definition at line 872 of file qquickmaterialstyle.cpp.

◆ elevationChanged

void QQuickMaterialStyle::elevationChanged ( )
signal

◆ foreground()

QVariant QQuickMaterialStyle::foreground ( ) const

Definition at line 681 of file qquickmaterialstyle.cpp.

◆ foregroundChange()

void QQuickMaterialStyle::foregroundChange ( )

Definition at line 758 of file qquickmaterialstyle.cpp.

◆ foregroundChanged

void QQuickMaterialStyle::foregroundChanged ( )
signal

◆ frameColor()

QColor QQuickMaterialStyle::frameColor ( ) const

Definition at line 1049 of file qquickmaterialstyle.cpp.

◆ frameVerticalPadding()

int QQuickMaterialStyle::frameVerticalPadding ( ) const

Definition at line 1392 of file qquickmaterialstyle.cpp.

◆ highlightedRippleColor()

QColor QQuickMaterialStyle::highlightedRippleColor ( ) const

Definition at line 1059 of file qquickmaterialstyle.cpp.

◆ hintTextColor()

QColor QQuickMaterialStyle::hintTextColor ( ) const

Definition at line 975 of file qquickmaterialstyle.cpp.

◆ iconColor()

QColor QQuickMaterialStyle::iconColor ( ) const

Definition at line 997 of file qquickmaterialstyle.cpp.

◆ iconDisabledColor()

QColor QQuickMaterialStyle::iconDisabledColor ( ) const

Definition at line 1002 of file qquickmaterialstyle.cpp.

◆ inheritAccent()

void QQuickMaterialStyle::inheritAccent ( uint accent,
bool custom )

Definition at line 640 of file qquickmaterialstyle.cpp.

◆ inheritBackground()

void QQuickMaterialStyle::inheritBackground ( uint background,
bool custom,
bool has )

Definition at line 809 of file qquickmaterialstyle.cpp.

◆ inheritForeground()

void QQuickMaterialStyle::inheritForeground ( uint foreground,
bool custom,
bool has )

Definition at line 724 of file qquickmaterialstyle.cpp.

◆ inheritPrimary()

void QQuickMaterialStyle::inheritPrimary ( uint primary,
bool custom )

Definition at line 576 of file qquickmaterialstyle.cpp.

◆ inheritTheme()

void QQuickMaterialStyle::inheritTheme ( Theme theme)

Definition at line 500 of file qquickmaterialstyle.cpp.

◆ initGlobals()

void QQuickMaterialStyle::initGlobals ( )
static

Definition at line 1483 of file qquickmaterialstyle.cpp.

◆ listHighlightColor()

QColor QQuickMaterialStyle::listHighlightColor ( ) const

Definition at line 1163 of file qquickmaterialstyle.cpp.

◆ menuItemHeight()

int QQuickMaterialStyle::menuItemHeight ( ) const

Definition at line 1397 of file qquickmaterialstyle.cpp.

◆ menuItemVerticalPadding()

int QQuickMaterialStyle::menuItemVerticalPadding ( ) const

Definition at line 1403 of file qquickmaterialstyle.cpp.

◆ primary()

QVariant QQuickMaterialStyle::primary ( ) const

Definition at line 554 of file qquickmaterialstyle.cpp.

◆ primaryChange()

void QQuickMaterialStyle::primaryChange ( )

Definition at line 611 of file qquickmaterialstyle.cpp.

◆ primaryChanged

void QQuickMaterialStyle::primaryChanged ( )
signal

◆ primaryColor()

QColor QQuickMaterialStyle::primaryColor ( ) const

Definition at line 915 of file qquickmaterialstyle.cpp.

◆ primaryHighlightedTextColor()

QColor QQuickMaterialStyle::primaryHighlightedTextColor ( ) const

Definition at line 963 of file qquickmaterialstyle.cpp.

◆ primaryHighlightedTextColorChanged

void QQuickMaterialStyle::primaryHighlightedTextColorChanged ( )
signal

◆ primaryTextColor()

QColor QQuickMaterialStyle::primaryTextColor ( ) const

Definition at line 958 of file qquickmaterialstyle.cpp.

◆ propagateAccent()

void QQuickMaterialStyle::propagateAccent ( )

Definition at line 651 of file qquickmaterialstyle.cpp.

◆ propagateBackground()

void QQuickMaterialStyle::propagateBackground ( )

Definition at line 823 of file qquickmaterialstyle.cpp.

◆ propagateForeground()

void QQuickMaterialStyle::propagateForeground ( )

Definition at line 736 of file qquickmaterialstyle.cpp.

◆ propagatePrimary()

void QQuickMaterialStyle::propagatePrimary ( )

Definition at line 587 of file qquickmaterialstyle.cpp.

◆ propagateTheme()

void QQuickMaterialStyle::propagateTheme ( )

Definition at line 520 of file qquickmaterialstyle.cpp.

◆ qmlAttachedProperties()

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

Definition at line 458 of file qquickmaterialstyle.cpp.

◆ resetAccent()

void QQuickMaterialStyle::resetAccent ( )

Definition at line 661 of file qquickmaterialstyle.cpp.

◆ resetBackground()

void QQuickMaterialStyle::resetBackground ( )

Definition at line 833 of file qquickmaterialstyle.cpp.

◆ resetContainerStyle()

void QQuickMaterialStyle::resetContainerStyle ( )

Definition at line 910 of file qquickmaterialstyle.cpp.

◆ resetElevation()

void QQuickMaterialStyle::resetElevation ( )

Definition at line 867 of file qquickmaterialstyle.cpp.

◆ resetForeground()

void QQuickMaterialStyle::resetForeground ( )

Definition at line 746 of file qquickmaterialstyle.cpp.

◆ resetPrimary()

void QQuickMaterialStyle::resetPrimary ( )

Definition at line 597 of file qquickmaterialstyle.cpp.

◆ resetRoundedScale()

void QQuickMaterialStyle::resetRoundedScale ( )

Definition at line 891 of file qquickmaterialstyle.cpp.

◆ resetTheme()

void QQuickMaterialStyle::resetTheme ( )

Definition at line 533 of file qquickmaterialstyle.cpp.

◆ rippleColor()

QColor QQuickMaterialStyle::rippleColor ( ) const

Definition at line 1054 of file qquickmaterialstyle.cpp.

◆ roundedScale()

QQuickMaterialStyle::RoundedScale QQuickMaterialStyle::roundedScale ( ) const

Definition at line 877 of file qquickmaterialstyle.cpp.

◆ roundedScaleChanged

void QQuickMaterialStyle::roundedScaleChanged ( )
signal

◆ scrollBarColor()

QColor QQuickMaterialStyle::scrollBarColor ( ) const

Definition at line 1136 of file qquickmaterialstyle.cpp.

◆ scrollBarHoveredColor()

QColor QQuickMaterialStyle::scrollBarHoveredColor ( ) const

Definition at line 1141 of file qquickmaterialstyle.cpp.

◆ scrollBarPressedColor()

QColor QQuickMaterialStyle::scrollBarPressedColor ( ) const

Definition at line 1146 of file qquickmaterialstyle.cpp.

◆ secondaryTextColor()

QColor QQuickMaterialStyle::secondaryTextColor ( ) const

Definition at line 970 of file qquickmaterialstyle.cpp.

◆ setAccent()

void QQuickMaterialStyle::setAccent ( const QVariant & accent)

Definition at line 623 of file qquickmaterialstyle.cpp.

◆ setBackground()

void QQuickMaterialStyle::setBackground ( const QVariant & background)

Definition at line 769 of file qquickmaterialstyle.cpp.

◆ setContainerStyle()

void QQuickMaterialStyle::setContainerStyle ( ContainerStyle containerStyle)

Definition at line 901 of file qquickmaterialstyle.cpp.

◆ setElevation()

void QQuickMaterialStyle::setElevation ( int elevation)

Definition at line 858 of file qquickmaterialstyle.cpp.

◆ setForeground()

void QQuickMaterialStyle::setForeground ( const QVariant & foreground)

Definition at line 696 of file qquickmaterialstyle.cpp.

◆ setPrimary()

void QQuickMaterialStyle::setPrimary ( const QVariant & accent)

Definition at line 559 of file qquickmaterialstyle.cpp.

◆ setRoundedScale()

void QQuickMaterialStyle::setRoundedScale ( RoundedScale roundedScale)

Definition at line 882 of file qquickmaterialstyle.cpp.

◆ setTheme()

void QQuickMaterialStyle::setTheme ( Theme theme)

Definition at line 468 of file qquickmaterialstyle.cpp.

◆ shade()

QColor QQuickMaterialStyle::shade ( const QColor & color,
Shade shade ) const

Definition at line 1294 of file qquickmaterialstyle.cpp.

◆ sliderDisabledColor()

QColor QQuickMaterialStyle::sliderDisabledColor ( ) const

Definition at line 1223 of file qquickmaterialstyle.cpp.

◆ spinBoxDisabledIconColor()

QColor QQuickMaterialStyle::spinBoxDisabledIconColor ( ) const

Definition at line 1218 of file qquickmaterialstyle.cpp.

◆ switchCheckedHandleColor()

QColor QQuickMaterialStyle::switchCheckedHandleColor ( ) const

Definition at line 1105 of file qquickmaterialstyle.cpp.

◆ switchCheckedHandleHeight()

int QQuickMaterialStyle::switchCheckedHandleHeight ( ) const

Definition at line 1423 of file qquickmaterialstyle.cpp.

◆ switchCheckedTrackColor()

QColor QQuickMaterialStyle::switchCheckedTrackColor ( ) const

Definition at line 1071 of file qquickmaterialstyle.cpp.

◆ switchDelegateVerticalPadding()

int QQuickMaterialStyle::switchDelegateVerticalPadding ( ) const

Definition at line 1433 of file qquickmaterialstyle.cpp.

◆ switchDisabledCheckedHandleColor()

QColor QQuickMaterialStyle::switchDisabledCheckedHandleColor ( ) const

Definition at line 1120 of file qquickmaterialstyle.cpp.

◆ switchDisabledCheckedIconColor()

QColor QQuickMaterialStyle::switchDisabledCheckedIconColor ( ) const

Definition at line 1125 of file qquickmaterialstyle.cpp.

◆ switchDisabledCheckedTrackColor()

QColor QQuickMaterialStyle::switchDisabledCheckedTrackColor ( ) const

Definition at line 1082 of file qquickmaterialstyle.cpp.

◆ switchDisabledUncheckedHandleColor()

QColor QQuickMaterialStyle::switchDisabledUncheckedHandleColor ( ) const

Definition at line 1110 of file qquickmaterialstyle.cpp.

◆ switchDisabledUncheckedIconColor()

QColor QQuickMaterialStyle::switchDisabledUncheckedIconColor ( ) const

Definition at line 1130 of file qquickmaterialstyle.cpp.

◆ switchDisabledUncheckedTrackBorderColor()

QColor QQuickMaterialStyle::switchDisabledUncheckedTrackBorderColor ( ) const

Definition at line 1088 of file qquickmaterialstyle.cpp.

◆ switchDisabledUncheckedTrackColor()

QColor QQuickMaterialStyle::switchDisabledUncheckedTrackColor ( ) const

Definition at line 1076 of file qquickmaterialstyle.cpp.

◆ switchIndicatorHeight()

int QQuickMaterialStyle::switchIndicatorHeight ( ) const

Definition at line 1413 of file qquickmaterialstyle.cpp.

◆ switchIndicatorWidth()

int QQuickMaterialStyle::switchIndicatorWidth ( ) const

Definition at line 1408 of file qquickmaterialstyle.cpp.

◆ switchLargestHandleHeight()

int QQuickMaterialStyle::switchLargestHandleHeight ( ) const

Definition at line 1428 of file qquickmaterialstyle.cpp.

◆ switchNormalHandleHeight()

int QQuickMaterialStyle::switchNormalHandleHeight ( ) const

Definition at line 1418 of file qquickmaterialstyle.cpp.

◆ switchUncheckedHandleColor()

QColor QQuickMaterialStyle::switchUncheckedHandleColor ( ) const

Definition at line 1094 of file qquickmaterialstyle.cpp.

◆ switchUncheckedHoveredHandleColor()

QColor QQuickMaterialStyle::switchUncheckedHoveredHandleColor ( ) const

Definition at line 1099 of file qquickmaterialstyle.cpp.

◆ switchUncheckedTrackColor()

QColor QQuickMaterialStyle::switchUncheckedTrackColor ( ) const

Definition at line 1066 of file qquickmaterialstyle.cpp.

◆ textFieldFilledContainerColor()

QColor QQuickMaterialStyle::textFieldFilledContainerColor ( ) const

Definition at line 1228 of file qquickmaterialstyle.cpp.

◆ textFieldHeight()

int QQuickMaterialStyle::textFieldHeight ( ) const

Definition at line 1440 of file qquickmaterialstyle.cpp.

◆ textFieldHorizontalPadding()

int QQuickMaterialStyle::textFieldHorizontalPadding ( ) const

Definition at line 1446 of file qquickmaterialstyle.cpp.

◆ textFieldVerticalPadding()

int QQuickMaterialStyle::textFieldVerticalPadding ( ) const

Definition at line 1450 of file qquickmaterialstyle.cpp.

◆ textSelectionColor()

QColor QQuickMaterialStyle::textSelectionColor ( ) const

Definition at line 980 of file qquickmaterialstyle.cpp.

◆ theme()

QQuickMaterialStyle::Theme QQuickMaterialStyle::theme ( ) const

Definition at line 463 of file qquickmaterialstyle.cpp.

◆ themeChange()

void QQuickMaterialStyle::themeChange ( )

Definition at line 543 of file qquickmaterialstyle.cpp.

◆ themeChanged

void QQuickMaterialStyle::themeChanged ( )
signal

◆ themeOrAccentChanged

void QQuickMaterialStyle::themeOrAccentChanged ( )
signal

◆ toolBarColor()

QColor QQuickMaterialStyle::toolBarColor ( ) const

Definition at line 1175 of file qquickmaterialstyle.cpp.

◆ toolBarColorChanged

void QQuickMaterialStyle::toolBarColorChanged ( )
signal

◆ toolTextColor()

QColor QQuickMaterialStyle::toolTextColor ( ) const

Definition at line 1182 of file qquickmaterialstyle.cpp.

◆ toolTextColorChanged

void QQuickMaterialStyle::toolTextColorChanged ( )
signal

◆ tooltipColor()

QColor QQuickMaterialStyle::tooltipColor ( ) const

Definition at line 1168 of file qquickmaterialstyle.cpp.

◆ tooltipColorChanged

void QQuickMaterialStyle::tooltipColorChanged ( )
signal

◆ tooltipHeight()

int QQuickMaterialStyle::tooltipHeight ( ) const

Definition at line 1455 of file qquickmaterialstyle.cpp.

◆ touchTarget()

int QQuickMaterialStyle::touchTarget ( ) const

Definition at line 1330 of file qquickmaterialstyle.cpp.

◆ variant()

QQuickMaterialStyle::Variant QQuickMaterialStyle::variant ( )
static

Definition at line 1461 of file qquickmaterialstyle.cpp.

Property Documentation

◆ accent

QVariant QQuickMaterialStyle::accent
readwrite

Definition at line 31 of file qquickmaterialstyle_p.h.

◆ accentColor

QColor QQuickMaterialStyle::accentColor
read

Definition at line 41 of file qquickmaterialstyle_p.h.

◆ background

QVariant QQuickMaterialStyle::background
readwrite

Definition at line 33 of file qquickmaterialstyle_p.h.

◆ backgroundColor

QColor QQuickMaterialStyle::backgroundColor
read

Definition at line 42 of file qquickmaterialstyle_p.h.

◆ backgroundDimColor

QColor QQuickMaterialStyle::backgroundDimColor
read

Definition at line 71 of file qquickmaterialstyle_p.h.

◆ buttonHeight

int QQuickMaterialStyle::buttonHeight
read

Definition at line 82 of file qquickmaterialstyle_p.h.

◆ buttonVerticalPadding

int QQuickMaterialStyle::buttonVerticalPadding
read

Definition at line 81 of file qquickmaterialstyle_p.h.

◆ containerStyle

ContainerStyle QQuickMaterialStyle::containerStyle
readwrite

Definition at line 37 of file qquickmaterialstyle_p.h.

◆ delegateHeight

int QQuickMaterialStyle::delegateHeight
read

Definition at line 83 of file qquickmaterialstyle_p.h.

◆ dialogButtonBoxHeight

int QQuickMaterialStyle::dialogButtonBoxHeight
read

Definition at line 84 of file qquickmaterialstyle_p.h.

◆ dialogColor

QColor QQuickMaterialStyle::dialogColor
read

Definition at line 70 of file qquickmaterialstyle_p.h.

◆ dialogRoundedScale

RoundedScale QQuickMaterialStyle::dialogRoundedScale
read

Definition at line 86 of file qquickmaterialstyle_p.h.

◆ dialogTitleFontPixelSize

int QQuickMaterialStyle::dialogTitleFontPixelSize
read

Definition at line 85 of file qquickmaterialstyle_p.h.

◆ dividerColor

QColor QQuickMaterialStyle::dividerColor
read

Definition at line 49 of file qquickmaterialstyle_p.h.

◆ dropShadowColor

QColor QQuickMaterialStyle::dropShadowColor
read

Definition at line 48 of file qquickmaterialstyle_p.h.

◆ elevation

int QQuickMaterialStyle::elevation
readwrite

Definition at line 34 of file qquickmaterialstyle_p.h.

◆ foreground

QVariant QQuickMaterialStyle::foreground
readwrite

Definition at line 32 of file qquickmaterialstyle_p.h.

◆ frameColor

QColor QQuickMaterialStyle::frameColor
read

Definition at line 52 of file qquickmaterialstyle_p.h.

◆ frameVerticalPadding

int QQuickMaterialStyle::frameVerticalPadding
read

Definition at line 87 of file qquickmaterialstyle_p.h.

◆ highlightedRippleColor

QColor QQuickMaterialStyle::highlightedRippleColor
read

Definition at line 54 of file qquickmaterialstyle_p.h.

◆ hintTextColor

QColor QQuickMaterialStyle::hintTextColor
read

Definition at line 46 of file qquickmaterialstyle_p.h.

◆ iconColor

QColor QQuickMaterialStyle::iconColor
read

Definition at line 50 of file qquickmaterialstyle_p.h.

◆ iconDisabledColor

QColor QQuickMaterialStyle::iconDisabledColor
read

Definition at line 51 of file qquickmaterialstyle_p.h.

◆ listHighlightColor

QColor QQuickMaterialStyle::listHighlightColor
read

Definition at line 72 of file qquickmaterialstyle_p.h.

◆ menuItemHeight

int QQuickMaterialStyle::menuItemHeight
read

Definition at line 88 of file qquickmaterialstyle_p.h.

◆ menuItemVerticalPadding

int QQuickMaterialStyle::menuItemVerticalPadding
read

Definition at line 89 of file qquickmaterialstyle_p.h.

◆ primary

QVariant QQuickMaterialStyle::primary
readwrite

Definition at line 30 of file qquickmaterialstyle_p.h.

◆ primaryColor

QColor QQuickMaterialStyle::primaryColor
read

Definition at line 40 of file qquickmaterialstyle_p.h.

◆ primaryHighlightedTextColor

QColor QQuickMaterialStyle::primaryHighlightedTextColor
read

Definition at line 44 of file qquickmaterialstyle_p.h.

◆ primaryTextColor

QColor QQuickMaterialStyle::primaryTextColor
read

Definition at line 43 of file qquickmaterialstyle_p.h.

◆ rippleColor

QColor QQuickMaterialStyle::rippleColor
read

Definition at line 53 of file qquickmaterialstyle_p.h.

◆ roundedScale

RoundedScale QQuickMaterialStyle::roundedScale
readwrite

Definition at line 35 of file qquickmaterialstyle_p.h.

◆ scrollBarColor

QColor QQuickMaterialStyle::scrollBarColor
read

Definition at line 67 of file qquickmaterialstyle_p.h.

◆ scrollBarHoveredColor

QColor QQuickMaterialStyle::scrollBarHoveredColor
read

Definition at line 68 of file qquickmaterialstyle_p.h.

◆ scrollBarPressedColor

QColor QQuickMaterialStyle::scrollBarPressedColor
read

Definition at line 69 of file qquickmaterialstyle_p.h.

◆ secondaryTextColor

QColor QQuickMaterialStyle::secondaryTextColor
read

Definition at line 45 of file qquickmaterialstyle_p.h.

◆ sliderDisabledColor

QColor QQuickMaterialStyle::sliderDisabledColor
read

Definition at line 77 of file qquickmaterialstyle_p.h.

◆ spinBoxDisabledIconColor

QColor QQuickMaterialStyle::spinBoxDisabledIconColor
read

Definition at line 76 of file qquickmaterialstyle_p.h.

◆ switchCheckedHandleColor

QColor QQuickMaterialStyle::switchCheckedHandleColor
read

Definition at line 62 of file qquickmaterialstyle_p.h.

◆ switchCheckedHandleHeight

int QQuickMaterialStyle::switchCheckedHandleHeight
read

Definition at line 93 of file qquickmaterialstyle_p.h.

◆ switchCheckedTrackColor

QColor QQuickMaterialStyle::switchCheckedTrackColor
read

Definition at line 56 of file qquickmaterialstyle_p.h.

◆ switchDelegateVerticalPadding

int QQuickMaterialStyle::switchDelegateVerticalPadding
read

Definition at line 95 of file qquickmaterialstyle_p.h.

◆ switchDisabledCheckedHandleColor

QColor QQuickMaterialStyle::switchDisabledCheckedHandleColor
read

Definition at line 64 of file qquickmaterialstyle_p.h.

◆ switchDisabledCheckedIconColor

QColor QQuickMaterialStyle::switchDisabledCheckedIconColor
read

Definition at line 65 of file qquickmaterialstyle_p.h.

◆ switchDisabledCheckedTrackColor

QColor QQuickMaterialStyle::switchDisabledCheckedTrackColor
read

Definition at line 60 of file qquickmaterialstyle_p.h.

◆ switchDisabledUncheckedHandleColor

QColor QQuickMaterialStyle::switchDisabledUncheckedHandleColor
read

Definition at line 63 of file qquickmaterialstyle_p.h.

◆ switchDisabledUncheckedIconColor

QColor QQuickMaterialStyle::switchDisabledUncheckedIconColor
read

Definition at line 66 of file qquickmaterialstyle_p.h.

◆ switchDisabledUncheckedTrackBorderColor

QColor QQuickMaterialStyle::switchDisabledUncheckedTrackBorderColor
read

Definition at line 61 of file qquickmaterialstyle_p.h.

◆ switchDisabledUncheckedTrackColor

QColor QQuickMaterialStyle::switchDisabledUncheckedTrackColor
read

Definition at line 59 of file qquickmaterialstyle_p.h.

◆ switchIndicatorHeight

int QQuickMaterialStyle::switchIndicatorHeight
read

Definition at line 91 of file qquickmaterialstyle_p.h.

◆ switchIndicatorWidth

int QQuickMaterialStyle::switchIndicatorWidth
read

Definition at line 90 of file qquickmaterialstyle_p.h.

◆ switchLargestHandleHeight

int QQuickMaterialStyle::switchLargestHandleHeight
read

Definition at line 94 of file qquickmaterialstyle_p.h.

◆ switchNormalHandleHeight

int QQuickMaterialStyle::switchNormalHandleHeight
read

Definition at line 92 of file qquickmaterialstyle_p.h.

◆ switchUncheckedHandleColor

QColor QQuickMaterialStyle::switchUncheckedHandleColor
read

Definition at line 57 of file qquickmaterialstyle_p.h.

◆ switchUncheckedHoveredHandleColor

QColor QQuickMaterialStyle::switchUncheckedHoveredHandleColor
read

Definition at line 58 of file qquickmaterialstyle_p.h.

◆ switchUncheckedTrackColor

QColor QQuickMaterialStyle::switchUncheckedTrackColor
read

Definition at line 55 of file qquickmaterialstyle_p.h.

◆ textFieldFilledContainerColor

QColor QQuickMaterialStyle::textFieldFilledContainerColor
read

Definition at line 78 of file qquickmaterialstyle_p.h.

◆ textFieldHeight

int QQuickMaterialStyle::textFieldHeight
read

Definition at line 96 of file qquickmaterialstyle_p.h.

◆ textFieldHorizontalPadding

int QQuickMaterialStyle::textFieldHorizontalPadding
read

Definition at line 97 of file qquickmaterialstyle_p.h.

◆ textFieldVerticalPadding

int QQuickMaterialStyle::textFieldVerticalPadding
read

Definition at line 98 of file qquickmaterialstyle_p.h.

◆ textSelectionColor

QColor QQuickMaterialStyle::textSelectionColor
read

Definition at line 47 of file qquickmaterialstyle_p.h.

◆ theme

Theme QQuickMaterialStyle::theme
readwrite

Definition at line 29 of file qquickmaterialstyle_p.h.

◆ toolBarColor

QColor QQuickMaterialStyle::toolBarColor
read

Definition at line 74 of file qquickmaterialstyle_p.h.

◆ toolTextColor

QColor QQuickMaterialStyle::toolTextColor
read

Definition at line 75 of file qquickmaterialstyle_p.h.

◆ tooltipColor

QColor QQuickMaterialStyle::tooltipColor
read

Definition at line 73 of file qquickmaterialstyle_p.h.

◆ tooltipHeight

int QQuickMaterialStyle::tooltipHeight
read

Definition at line 99 of file qquickmaterialstyle_p.h.

◆ touchTarget

int QQuickMaterialStyle::touchTarget
read

Definition at line 80 of file qquickmaterialstyle_p.h.


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