Fix warnings for -no-feature-cssparser
Change-Id: Ib0eae1858880e3fe2b6c6abd94c7ea0bbc2649a2 Reviewed-by: Stephan Binner <stephan.binner@basyskom.com> Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>bb10
parent
80f1762a59
commit
d9fe00e8e2
|
|
@ -834,6 +834,8 @@ void QTextDocumentLayoutPrivate::drawBorder(QPainter *painter, const QRectF &rec
|
|||
|
||||
#ifndef QT_NO_CSSPARSER
|
||||
QCss::BorderStyle cssStyle = static_cast<QCss::BorderStyle>(style + 1);
|
||||
#else
|
||||
Q_UNUSED(style);
|
||||
#endif //QT_NO_CSSPARSER
|
||||
|
||||
bool turn_off_antialiasing = !(painter->renderHints() & QPainter::Antialiasing);
|
||||
|
|
|
|||
|
|
@ -706,8 +706,8 @@ void QTextHtmlParser::parseTag()
|
|||
node = resolveParent();
|
||||
resolveNode();
|
||||
|
||||
const int nodeIndex = nodes.count() - 1; // this new node is always the last
|
||||
#ifndef QT_NO_CSSPARSER
|
||||
const int nodeIndex = nodes.count() - 1; // this new node is always the last
|
||||
node->applyCssDeclarations(declarationsForNode(nodeIndex), resourceProvider);
|
||||
#endif
|
||||
applyAttributes(node->attributes);
|
||||
|
|
|
|||
Loading…
Reference in New Issue