mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
build fix for the case when QT_NO_CSSPARSER is defined
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
6c3cd520e2
commit
19c8416447
2 changed files with 4 additions and 11 deletions
|
@ -383,8 +383,6 @@ void qDrawBorder(QPainter *p, const QRect &br, const QCss::BorderStyle *styles,
|
|||
}
|
||||
}
|
||||
|
||||
#endif //QT_NO_CSSPARSER
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
||||
#endif // QT_NO_CSSPARSER
|
||||
|
|
|
@ -611,7 +611,7 @@ void QTextHtmlParser::parseTag()
|
|||
parser.parse(&sheet, Qt::CaseInsensitive);
|
||||
inlineStyleSheets.append(sheet);
|
||||
resolveStyleSheetImports(sheet);
|
||||
#endif
|
||||
#endif // QT_NO_CSSPARSER
|
||||
}
|
||||
parseCloseTag();
|
||||
return;
|
||||
|
@ -1343,7 +1343,6 @@ void QTextHtmlParserNode::applyCssDeclarations(const QVector<QCss::Declaration>
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // QT_NO_CSSPARSER
|
||||
|
||||
void QTextHtmlParserNode::applyBackgroundImage(const QString &url, const QTextDocument *resourceProvider)
|
||||
|
@ -1434,7 +1433,7 @@ void QTextHtmlParserNode::parseStyleAttribute(const QString &value, const QTextD
|
|||
if (sheet.styleRules.count() != 1) return;
|
||||
applyCssDeclarations(sheet.styleRules.at(0).declarations, resourceProvider);
|
||||
}
|
||||
#endif
|
||||
#endif // QT_NO_CSSPARSER
|
||||
|
||||
QStringList QTextHtmlParser::parseAttributes()
|
||||
{
|
||||
|
@ -1697,8 +1696,6 @@ QStringList QTextHtmlStyleSelector::nodeNames(NodePtr node) const
|
|||
return QStringList(parser->at(node.id).tag.toLower());
|
||||
}
|
||||
|
||||
#endif // QT_NO_CSSPARSER
|
||||
|
||||
static inline int findAttribute(const QStringList &attributes, const QString &name)
|
||||
{
|
||||
int idx = -1;
|
||||
|
@ -1708,8 +1705,6 @@ static inline int findAttribute(const QStringList &attributes, const QString &na
|
|||
return idx;
|
||||
}
|
||||
|
||||
#ifndef QT_NO_CSSPARSER
|
||||
|
||||
QString QTextHtmlStyleSelector::attribute(NodePtr node, const QString &name) const
|
||||
{
|
||||
const QStringList &attributes = parser->at(node.id).attributes;
|
||||
|
@ -1836,9 +1831,9 @@ bool QTextHtmlParser::nodeIsChildOf(int i, QTextHTMLElements id) const
|
|||
}
|
||||
return false;
|
||||
}
|
||||
#endif // QT_NO_CSSPARSER
|
||||
|
||||
QT_END_NAMESPACE
|
||||
#endif // QT_NO_CSSPARSER
|
||||
|
||||
#endif // QT_NO_TEXTHTMLPARSER
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue