52 #include "private/qcssparser_p.h" 55 #ifndef QT_NO_STYLE_STYLESHEET 65 #define SET_ELEMENT_NAME(x) \ 66 bSelector.elementName = (x) 77 #define ADD_PSEUDO(x, y) \ 80 bSelector.pseudos << pseudo 86 #define ADD_ATTRIBUTE_SELECTOR(x, y, z) \ 89 attr.valueMatchCriterium = (z); \ 90 bSelector.attributeSelectors << attr 95 #define ADD_BASIC_SELECTOR \ 96 selector.basicSelectors << bSelector; \ 97 bSelector.ids.clear(); \ 98 bSelector.pseudos.clear(); \ 99 bSelector.attributeSelectors.clear() 104 #define ADD_SELECTOR \ 105 styleRule.selectors << selector; \ 106 selector.basicSelectors.clear() 112 #define SET_PROPERTY(x, y) \ 113 decl.d->property = (x); \ 114 decl.d->propertyId = (y) 125 #define ADD_VALUE(x, y) \ 127 value.variant = (y); \ 128 decl.d->values << value 134 #define ADD_DECLARATION \ 135 styleRule.declarations << decl; \ 137 decl.d->values.clear() 142 #define ADD_STYLE_RULE \ 143 sheet.styleRules << styleRule; \ 144 styleRule.selectors.clear(); \ 145 styleRule.declarations.clear() 159 bool styleIsPixmapBased = baseStyle()->inherits(
"QMacStyle")
160 || baseStyle()->inherits(
"QWindowsXPStyle")
161 || baseStyle()->inherits(
"QGtkStyle")
162 || baseStyle()->inherits(
"QS60Style");
298 if (!styleIsPixmapBased) {
324 if (!styleIsPixmapBased) {
343 if (baseStyle()->inherits(
"QPlastiqueStyle") || baseStyle()->inherits(
"QCleanlooksStyle"))
399 if (!styleIsPixmapBased) {
447 if (!styleIsPixmapBased) {
510 #endif // #ifndef QT_NO_STYLE_STYLESHEET QCss::StyleSheet getDefaultStyleSheet() const
void buildIndexes(Qt::CaseSensitivity nameCaseSensitivity=Qt::CaseSensitive)
#define QT_END_NAMESPACE
This macro expands to.
#define ADD_BASIC_SELECTOR
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define SET_PROPERTY(x, y)
const quint64 PseudoClass_Unknown
#define SET_ELEMENT_NAME(x)
The BorderImage element provides an image that can be used as a border.
const quint64 PseudoClass_Frameless
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
#define ADD_ATTRIBUTE_SELECTOR(x, y, z)