1930 for (
int sheetIdx = 0; sheetIdx <
styleSheets.count(); ++sheetIdx) {
1932 for (
int i = 0; i < styleSheet.
styleRules.count(); ++i) {
1936 if (!styleSheet.
idIndex.isEmpty()) {
1938 for (
int i = 0; i < ids.
count(); i++) {
1941 while (it != styleSheet.
idIndex.constEnd() && it.
key() ==
key) {
1949 for (
int i = 0; i < names.
count(); i++) {
1961 for (
int i = 0; i < styleSheet.
mediaRules.count(); ++i) {
1963 for (
int j = 0; j < styleSheet.
mediaRules.at(i).styleRules.count(); ++j) {
1965 styleSheet.
depth, &weightedRules);
1974 for ( ; it != weightedRules.
constEnd() ; ++
it)
The QHash::const_iterator class provides an STL-style const iterator for QHash and QMultiHash...
#define it(className, varName)
int count(const Key &key) const
Returns the number of items associated with key key.
virtual QStringList nodeIds(NodePtr node) const
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
The QVector class is a template class that provides a dynamic array.
const Key & key() const
Returns the current item's key.
QMultiHash< QString, StyleRule > idIndex
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
virtual QStringList nodeNames(NodePtr node) const =0
void matchRule(NodePtr node, const StyleRule &rules, StyleSheetOrigin origin, int depth, QMap< uint, StyleRule > *weightedRules)
QVector< StyleRule > styleRules
const T & value() const
Returns the current item's value.
QVector< MediaRule > mediaRules
QVector< StyleSheet > styleSheets
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the map.
The QMap::const_iterator class provides an STL-style const iterator for QMap and QMultiMap.
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the map...
Qt::CaseSensitivity nameCaseSensitivity
QMultiHash< QString, StyleRule > nameIndex
QString toLower() const Q_REQUIRED_RESULT
Returns a lowercase copy of the string.
void reserve(int size)
Attempts to allocate memory for at least size elements.
The QMap class is a template class that provides a skip-list-based dictionary.