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

#include <qqstylekitreader_p.h>

Inheritance diagram for QQStyleKitReader:
Collaboration diagram for QQStyleKitReader:

Public Types

enum  ControlType {
  Unspecified = 100000 , Control , AbstractButton , ApplicationWindow ,
  Button , CheckBox , ComboBox , FlatButton ,
  ProgressBar , ScrollBar , ScrollIndicator , ScrollView ,
  Slider , SpinBox , SwitchControl , SearchField ,
  TabBar , TabButton , TextArea , TextField ,
  TextInput , ToolBar , ToolButton , ToolSeparator ,
  RadioButton , ItemDelegate , Popup , Menu ,
  Dialog , Pane , Page , Frame ,
  Label , GroupBox
}
enum class  AlternateState { Alternate1 , Alternate2 }

Signals

void typeChanged ()
void customTypeChanged ()
void propertiesChanged ()
void enabledChanged ()
void focusedChanged ()
void checkedChanged ()
void hoveredChanged ()
void pressedChanged ()
void paletteChanged ()
void verticalChanged ()
void highlightedChanged ()
void fontChanged ()
void effectiveFontChanged ()
Signals inherited from QQStyleKitControlProperties
void backgroundChanged ()
void handleChanged ()
void indicatorChanged ()
void spacingChanged ()
void paddingChanged ()
void leftPaddingChanged ()
void rightPaddingChanged ()
void topPaddingChanged ()
void bottomPaddingChanged ()
void transitionChanged ()
void textChanged ()
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

 QQStyleKitReader (QObject *parent=nullptr)
 ~QQStyleKitReader ()
QQStyleKitExtendableControlType type () const
void setType (QQStyleKitExtendableControlType type)
bool hovered () const
void setHovered (bool hovered)
bool enabled () const
void setEnabled (bool enabled)
bool focused () const
void setFocused (bool focused)
bool checked () const
void setChecked (bool checked)
bool pressed () const
void setPressed (bool pressed)
QQuickPalettepalette () const
void setPalette (QQuickPalette *palette)
QPalette effectivePalette () const
bool vertical () const
void setVertical (bool vertical)
bool highlighted () const
void setHighlighted (bool highlighted)
QFont font () const
void setFont (const QFont &font)
QFont effectiveFont () const
QQStyleKitControlPropertiesglobal () const
QVariant readStyleProperty (PropertyStorageId key) const
void writeStyleProperty (PropertyStorageId key, const QVariant &value)
void clearLocalStorage ()
QQSK::State controlState () const
Public Member Functions inherited from QQStyleKitControlProperties
 QQStyleKitControlProperties (QQSK::PropertyGroup group, QObject *parent=nullptr)
void emitChangedForAllStyleProperties ()
template<typename... CHANGED_SIGNALS>
void emitGlobally (QQStyleKitExtendableControlType controlType, CHANGED_SIGNALS... changedSignals) const
void forEachUsedDelegate (std::function< void(QQStyleKitDelegateProperties *, QQSK::Delegate, const QString &)> f)
QQStyleKitStylestyle () const
QQSK::Subclass subclass () const
QQStyleKitReaderasQQStyleKitReader () const
QQStyleKitControlStateasQQStyleKitState () const
qreal spacing () const
void setSpacing (qreal spacing)
qreal padding () const
void setPadding (qreal padding)
qreal leftPadding () const
void setLeftPadding (qreal leftPadding)
qreal rightPadding () const
void setRightPadding (qreal rightPadding)
qreal topPadding () const
void setTopPadding (qreal topPadding)
qreal bottomPadding () const
void setBottomPadding (qreal bottomPadding)
QQuickTransitiontransition () const
void setTransition (QQuickTransition *transition)
QQStyleKitTextPropertiestext () const
QQStyleKitDelegatePropertiesbackground () const
QQStyleKitHandlePropertieshandle () const
QQStyleKitIndicatorWithSubTypesindicator () const
Public Member Functions inherited from QQStyleKitPropertyGroup
 QQStyleKitPropertyGroup (QQSK::PropertyGroup group, QObject *parent)
PropertyPathId propertyPathId (QQSK::Property property, PropertyPathId::Flag flag) const
QString pathToString () const
template<typename T>
styleProperty (QQSK::Property property, QQSK::Property alternative=QQSK::Property::NoProperty) const
template<typename T>
styleProperty (QQSK::Property property, const T &defaultValue) const
template<typename T>
bool setStyleProperty (QQSK::Property property, T value)
bool isDefined (QQSK::Property property) const
template<typename SUBCLASS>
void handleStylePropertyChanged (void(SUBCLASS::*changedSignal)())
template<typename SUBCLASS, typename... CHANGED_SIGNALS>
void handleStylePropertiesChanged (CHANGED_SIGNALS... changedSignals)
template<typename T>
T * lazyCreateGroup (T *const &ptr, QQSK::PropertyGroup group) const
bool isControlProperties () const
QQStyleKitControlPropertiescontrolProperties () const
QQSK::PropertyPathFlags pathFlags () const
void emitChangedForAllStylePropertiesRecursive ()
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 void setTransitionEnabled (bool enabled)
static bool transitionEnabled ()
static void resetAll ()
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)

Static Public Attributes

static QList< QQStyleKitReader * > s_allReaders

Properties

QQStyleKitExtendableControlType type
bool enabled
bool focused
bool checked
bool hovered
bool pressed
bool vertical
bool highlighted
QFont font
QFont effectiveFont
QQuickPalettepalette
QQStyleKitControlPropertiesglobal
Properties inherited from QQStyleKitControlProperties
qreal spacing
qreal padding
qreal leftPadding
qreal rightPadding
qreal topPadding
qreal bottomPadding
QQStyleKitDelegatePropertiesbackground
QQStyleKitHandlePropertieshandle
QQStyleKitIndicatorWithSubTypesindicator
QQStyleKitTextPropertiestext
QQuickTransitiontransition
Properties inherited from QObject
QString objectName
 the name of this object

Friends

class QQStyleKitControlProperties
class QQStyleKitPropertyResolver
class QQStyleKitPropertyGroup

Additional Inherited Members

Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
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)
Protected Attributes inherited from QQStyleKitPropertyGroup
QQStyleKitPropertyGroupSpace m_groupSpace
QQSK::PropertyPathFlags m_pathFlags = QQSK::PropertyPathFlag::NoFlags
Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr

Detailed Description

Definition at line 32 of file qqstylekitreader_p.h.

Member Enumeration Documentation

◆ AlternateState

Enumerator
Alternate1 
Alternate2 

Definition at line 89 of file qqstylekitreader_p.h.

◆ ControlType

Enumerator
Unspecified 
Control 
AbstractButton 
ApplicationWindow 
Button 
CheckBox 
ComboBox 
FlatButton 
ProgressBar 
ScrollBar 
ScrollIndicator 
ScrollView 
Slider 
SpinBox 
SwitchControl 
SearchField 
TabBar 
TabButton 
TextArea 
TextField 
TextInput 
ToolBar 
ToolButton 
ToolSeparator 
RadioButton 
ItemDelegate 
Popup 
Menu 
Dialog 
Pane 
Page 
Frame 
Label 
GroupBox 

Definition at line 51 of file qqstylekitreader_p.h.

Constructor & Destructor Documentation

◆ QQStyleKitReader()

QQStyleKitReader::QQStyleKitReader ( QObject * parent = nullptr)

Definition at line 56 of file qqstylekitreader.cpp.

◆ ~QQStyleKitReader()

QQStyleKitReader::~QQStyleKitReader ( )

Definition at line 65 of file qqstylekitreader.cpp.

Member Function Documentation

◆ checked()

bool QQStyleKitReader::checked ( ) const

Definition at line 391 of file qqstylekitreader.cpp.

Referenced by palette().

Here is the caller graph for this function:

◆ checkedChanged

void QQStyleKitReader::checkedChanged ( )
signal

◆ clearLocalStorage()

void QQStyleKitReader::clearLocalStorage ( )

Definition at line 274 of file qqstylekitreader.cpp.

◆ controlState()

QQSK::State QQStyleKitReader::controlState ( ) const

Definition at line 283 of file qqstylekitreader.cpp.

References resetAll().

Here is the call graph for this function:

◆ customTypeChanged

void QQStyleKitReader::customTypeChanged ( )
signal

◆ effectiveFont()

QFont QQStyleKitReader::effectiveFont ( ) const

Definition at line 533 of file qqstylekitreader.cpp.

◆ effectiveFontChanged

void QQStyleKitReader::effectiveFontChanged ( )
signal

◆ effectivePalette()

QPalette QQStyleKitReader::effectivePalette ( ) const

Definition at line 480 of file qqstylekitreader.cpp.

◆ enabled()

bool QQStyleKitReader::enabled ( ) const

Definition at line 359 of file qqstylekitreader.cpp.

Referenced by vertical().

Here is the caller graph for this function:

◆ enabledChanged

void QQStyleKitReader::enabledChanged ( )
signal

◆ focused()

bool QQStyleKitReader::focused ( ) const

Definition at line 375 of file qqstylekitreader.cpp.

Referenced by highlighted().

Here is the caller graph for this function:

◆ focusedChanged

void QQStyleKitReader::focusedChanged ( )
signal

◆ font()

QFont QQStyleKitReader::font ( ) const

Definition at line 516 of file qqstylekitreader.cpp.

◆ fontChanged

void QQStyleKitReader::fontChanged ( )
signal

◆ global()

QQStyleKitControlProperties * QQStyleKitReader::global ( ) const

Definition at line 571 of file qqstylekitreader.cpp.

◆ highlighted()

bool QQStyleKitReader::highlighted ( ) const

Definition at line 439 of file qqstylekitreader.cpp.

References focused().

Here is the call graph for this function:

◆ highlightedChanged

void QQStyleKitReader::highlightedChanged ( )
signal

◆ hovered()

bool QQStyleKitReader::hovered ( ) const

Definition at line 343 of file qqstylekitreader.cpp.

Referenced by pressed().

Here is the caller graph for this function:

◆ hoveredChanged

void QQStyleKitReader::hoveredChanged ( )
signal

◆ palette()

QQuickPalette * QQStyleKitReader::palette ( ) const

Definition at line 455 of file qqstylekitreader.cpp.

References checked().

Here is the call graph for this function:

◆ paletteChanged

void QQStyleKitReader::paletteChanged ( )
signal

◆ pressed()

bool QQStyleKitReader::pressed ( ) const

Definition at line 407 of file qqstylekitreader.cpp.

References hovered().

Here is the call graph for this function:

◆ pressedChanged

void QQStyleKitReader::pressedChanged ( )
signal

◆ propertiesChanged

void QQStyleKitReader::propertiesChanged ( )
signal

◆ readStyleProperty()

QVariant QQStyleKitReader::readStyleProperty ( PropertyStorageId key) const

Definition at line 302 of file qqstylekitreader.cpp.

◆ resetAll()

void QQStyleKitReader::resetAll ( )
static

Definition at line 236 of file qqstylekitreader.cpp.

Referenced by controlState(), and QQStyleKitAttached::setStyle().

Here is the caller graph for this function:

◆ setChecked()

void QQStyleKitReader::setChecked ( bool checked)

Definition at line 396 of file qqstylekitreader.cpp.

◆ setEnabled()

void QQStyleKitReader::setEnabled ( bool enabled)

Definition at line 364 of file qqstylekitreader.cpp.

◆ setFocused()

void QQStyleKitReader::setFocused ( bool focused)

Definition at line 380 of file qqstylekitreader.cpp.

◆ setFont()

void QQStyleKitReader::setFont ( const QFont & font)

Definition at line 521 of file qqstylekitreader.cpp.

◆ setHighlighted()

void QQStyleKitReader::setHighlighted ( bool highlighted)

Definition at line 444 of file qqstylekitreader.cpp.

◆ setHovered()

void QQStyleKitReader::setHovered ( bool hovered)

Definition at line 348 of file qqstylekitreader.cpp.

◆ setPalette()

void QQStyleKitReader::setPalette ( QQuickPalette * palette)

Definition at line 460 of file qqstylekitreader.cpp.

◆ setPressed()

void QQStyleKitReader::setPressed ( bool pressed)

Definition at line 412 of file qqstylekitreader.cpp.

◆ setTransitionEnabled()

void QQStyleKitReader::setTransitionEnabled ( bool enabled)
static

◆ setType()

void QQStyleKitReader::setType ( QQStyleKitExtendableControlType type)

Definition at line 322 of file qqstylekitreader.cpp.

◆ setVertical()

void QQStyleKitReader::setVertical ( bool vertical)

Definition at line 428 of file qqstylekitreader.cpp.

◆ transitionEnabled()

bool QQStyleKitReader::transitionEnabled ( )
static

◆ type()

QQStyleKitExtendableControlType QQStyleKitReader::type ( ) const

Definition at line 317 of file qqstylekitreader.cpp.

◆ typeChanged

void QQStyleKitReader::typeChanged ( )
signal

◆ vertical()

bool QQStyleKitReader::vertical ( ) const

Definition at line 423 of file qqstylekitreader.cpp.

References enabled().

Here is the call graph for this function:

◆ verticalChanged

void QQStyleKitReader::verticalChanged ( )
signal

◆ writeStyleProperty()

void QQStyleKitReader::writeStyleProperty ( PropertyStorageId key,
const QVariant & value )

Definition at line 307 of file qqstylekitreader.cpp.

◆ QQStyleKitControlProperties

friend class QQStyleKitControlProperties
friend

Definition at line 212 of file qqstylekitreader_p.h.

◆ QQStyleKitPropertyGroup

friend class QQStyleKitPropertyGroup
friend

Definition at line 214 of file qqstylekitreader_p.h.

◆ QQStyleKitPropertyResolver

friend class QQStyleKitPropertyResolver
friend

Definition at line 213 of file qqstylekitreader_p.h.

Member Data Documentation

◆ s_allReaders

QList< QQStyleKitReader * > QQStyleKitReader::s_allReaders
static

Definition at line 145 of file qqstylekitreader_p.h.

Property Documentation

◆ checked

bool QQStyleKitReader::checked
readwrite

Definition at line 38 of file qqstylekitreader_p.h.

◆ effectiveFont

QFont QQStyleKitReader::effectiveFont
read

Definition at line 44 of file qqstylekitreader_p.h.

◆ enabled

bool QQStyleKitReader::enabled
readwrite

Definition at line 36 of file qqstylekitreader_p.h.

◆ focused

bool QQStyleKitReader::focused
readwrite

Definition at line 37 of file qqstylekitreader_p.h.

◆ font

QFont QQStyleKitReader::font
readwrite

Definition at line 43 of file qqstylekitreader_p.h.

◆ global

QQStyleKitControlProperties * QQStyleKitReader::global
read

Definition at line 46 of file qqstylekitreader_p.h.

◆ highlighted

bool QQStyleKitReader::highlighted
readwrite

Definition at line 42 of file qqstylekitreader_p.h.

◆ hovered

bool QQStyleKitReader::hovered
readwrite

Definition at line 39 of file qqstylekitreader_p.h.

◆ palette

QQuickPalette * QQStyleKitReader::palette
readwrite

Definition at line 45 of file qqstylekitreader_p.h.

◆ pressed

bool QQStyleKitReader::pressed
readwrite

Definition at line 40 of file qqstylekitreader_p.h.

◆ type

QQStyleKitExtendableControlType QQStyleKitReader::type
readwrite

Definition at line 35 of file qqstylekitreader_p.h.

◆ vertical

bool QQStyleKitReader::vertical
readwrite

Definition at line 41 of file qqstylekitreader_p.h.


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