Qt 4.8
Macros
qstylesheetstyle_default.cpp File Reference
#include "private/qcssparser_p.h"
#include "qstylesheetstyle_p.h"

Go to the source code of this file.

Macros

#define ADD_ATTRIBUTE_SELECTOR(x, y, z)
 
#define ADD_BASIC_SELECTOR
 
#define ADD_DECLARATION
 
#define ADD_PSEUDO(x, y)
 
#define ADD_SELECTOR
 
#define ADD_STYLE_RULE
 
#define ADD_VALUE(x, y)
 
#define SET_ELEMENT_NAME(x)   bSelector.elementName = (x)
 
#define SET_PROPERTY(x, y)
 

Macro Definition Documentation

◆ ADD_ATTRIBUTE_SELECTOR

#define ADD_ATTRIBUTE_SELECTOR (   x,
  y,
 
)
Value:
attr.name = (x); \
attr.value = (y); \
attr.valueMatchCriterium = (z); \
bSelector.attributeSelectors << attr

Definition at line 86 of file qstylesheetstyle_default.cpp.

Referenced by QStyleSheetStyle::getDefaultStyleSheet().

◆ ADD_BASIC_SELECTOR

#define ADD_BASIC_SELECTOR
Value:
selector.basicSelectors << bSelector; \
bSelector.ids.clear(); \
bSelector.pseudos.clear(); \
bSelector.attributeSelectors.clear()

Definition at line 95 of file qstylesheetstyle_default.cpp.

Referenced by QStyleSheetStyle::getDefaultStyleSheet().

◆ ADD_DECLARATION

#define ADD_DECLARATION
Value:
styleRule.declarations << decl; \
decl.d.detach(); \
decl.d->values.clear()

Definition at line 134 of file qstylesheetstyle_default.cpp.

Referenced by QStyleSheetStyle::getDefaultStyleSheet().

◆ ADD_PSEUDO

#define ADD_PSEUDO (   x,
 
)
Value:
pseudo.type = (y); \
pseudo.name = (x); \
bSelector.pseudos << pseudo

Definition at line 77 of file qstylesheetstyle_default.cpp.

Referenced by QStyleSheetStyle::getDefaultStyleSheet().

◆ ADD_SELECTOR

#define ADD_SELECTOR
Value:
styleRule.selectors << selector; \
selector.basicSelectors.clear()

Definition at line 104 of file qstylesheetstyle_default.cpp.

Referenced by QStyleSheetStyle::getDefaultStyleSheet().

◆ ADD_STYLE_RULE

#define ADD_STYLE_RULE
Value:
sheet.styleRules << styleRule; \
styleRule.selectors.clear(); \
styleRule.declarations.clear()

Definition at line 142 of file qstylesheetstyle_default.cpp.

Referenced by QStyleSheetStyle::getDefaultStyleSheet().

◆ ADD_VALUE

#define ADD_VALUE (   x,
 
)
Value:
value.type = (x); \
value.variant = (y); \
decl.d->values << value

Definition at line 125 of file qstylesheetstyle_default.cpp.

Referenced by QStyleSheetStyle::getDefaultStyleSheet().

◆ SET_ELEMENT_NAME

#define SET_ELEMENT_NAME (   x)    bSelector.elementName = (x)

Definition at line 65 of file qstylesheetstyle_default.cpp.

Referenced by QStyleSheetStyle::getDefaultStyleSheet().

◆ SET_PROPERTY

#define SET_PROPERTY (   x,
 
)
Value:
decl.d->property = (x); \
decl.d->propertyId = (y)

Definition at line 112 of file qstylesheetstyle_default.cpp.

Referenced by QStyleSheetStyle::getDefaultStyleSheet().