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
QCss::StyleSelector Class Referenceabstract

#include <qcssparser_p.h>

+ Inheritance diagram for QCss::StyleSelector:
+ Collaboration diagram for QCss::StyleSelector:

Classes

union  NodePtr
 

Public Member Functions

 StyleSelector ()
 
virtual ~StyleSelector ()
 
QList< StyleRulestyleRulesForNode (NodePtr node)
 
QList< DeclarationdeclarationsForNode (NodePtr node, const char *extraPseudo=nullptr)
 
virtual bool nodeNameEquals (NodePtr node, const QString &nodeName) const
 
virtual QString attributeValue (NodePtr node, const QCss::AttributeSelector &aSelector) const =0
 
virtual bool hasAttributes (NodePtr node) const =0
 
virtual QStringList nodeIds (NodePtr node) const
 
virtual QStringList nodeNames (NodePtr node) const =0
 
virtual bool isNullNode (NodePtr node) const =0
 
virtual NodePtr parentNode (NodePtr node) const =0
 
virtual NodePtr previousSiblingNode (NodePtr node) const =0
 
virtual NodePtr duplicateNode (NodePtr node) const =0
 
virtual void freeNode (NodePtr node) const =0
 

Public Attributes

QList< StyleSheetstyleSheets
 
QString medium
 
Qt::CaseSensitivity nameCaseSensitivity
 

Detailed Description

Definition at line 621 of file qcssparser_p.h.

Constructor & Destructor Documentation

◆ StyleSelector()

QCss::StyleSelector::StyleSelector ( )
inline

Definition at line 624 of file qcssparser_p.h.

◆ ~StyleSelector()

StyleSelector::~StyleSelector ( )
virtual

Definition at line 1970 of file qcssparser.cpp.

Member Function Documentation

◆ attributeValue()

virtual QString QCss::StyleSelector::attributeValue ( NodePtr node,
const QCss::AttributeSelector & aSelector ) const
pure virtual

Implemented in QSvgStyleSelector, and QTextHtmlStyleSelector.

Referenced by nodeIds().

+ Here is the caller graph for this function:

◆ declarationsForNode()

QList< Declaration > StyleSelector::declarationsForNode ( NodePtr node,
const char * extraPseudo = nullptr )

Definition at line 2193 of file qcssparser.cpp.

References i, QString::isEmpty(), QCss::PseudoClass_Enabled, QCss::PseudoClass_Unspecified, selector, and styleRulesForNode().

+ Here is the call graph for this function:

◆ duplicateNode()

virtual NodePtr QCss::StyleSelector::duplicateNode ( NodePtr node) const
pure virtual

◆ freeNode()

virtual void QCss::StyleSelector::freeNode ( NodePtr node) const
pure virtual

◆ hasAttributes()

virtual bool QCss::StyleSelector::hasAttributes ( NodePtr node) const
pure virtual

◆ isNullNode()

virtual bool QCss::StyleSelector::isNullNode ( NodePtr node) const
pure virtual

◆ nodeIds()

QStringList StyleSelector::nodeIds ( NodePtr node) const
virtual

Reimplemented in QSvgStyleSelector.

Definition at line 1979 of file qcssparser.cpp.

References attributeValue(), and QCss::AttributeSelector::NoMatch.

Referenced by styleRulesForNode().

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

◆ nodeNameEquals()

bool StyleSelector::nodeNameEquals ( NodePtr node,
const QString & nodeName ) const
virtual

Reimplemented in QSvgStyleSelector.

Definition at line 1974 of file qcssparser.cpp.

References nameCaseSensitivity, and nodeNames().

+ Here is the call graph for this function:

◆ nodeNames()

virtual QStringList QCss::StyleSelector::nodeNames ( NodePtr node) const
pure virtual

Implemented in QTextHtmlStyleSelector, and QSvgStyleSelector.

Referenced by nodeNameEquals(), and styleRulesForNode().

+ Here is the caller graph for this function:

◆ parentNode()

virtual NodePtr QCss::StyleSelector::parentNode ( NodePtr node) const
pure virtual

◆ previousSiblingNode()

virtual NodePtr QCss::StyleSelector::previousSiblingNode ( NodePtr node) const
pure virtual

◆ styleRulesForNode()

QList< StyleRule > StyleSelector::styleRulesForNode ( NodePtr node)

Definition at line 2132 of file qcssparser.cpp.

References QString::at(), Qt::CaseInsensitive, QSet< T >::constBegin(), QSet< T >::constEnd(), QCss::StyleSheet::depth, i, QCss::StyleSheet::idIndex, QString::isEmpty(), it, j, QCss::StyleSheet::mediaRules, medium, nameCaseSensitivity, QCss::StyleSheet::nameIndex, nodeIds(), nodeNames(), QCss::StyleSheet::origin, QCss::StyleSheet::styleRules, and styleSheets.

Referenced by declarationsForNode().

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

Member Data Documentation

◆ medium

QString QCss::StyleSelector::medium

Definition at line 647 of file qcssparser_p.h.

Referenced by styleRulesForNode().

◆ nameCaseSensitivity

◆ styleSheets

QList<StyleSheet> QCss::StyleSelector::styleSheets

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