various cleanups

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2016-07-31 23:28:15 +00:00
parent 4989d40988
commit 4e1b4b4501
3 changed files with 2 additions and 17 deletions

View file

@ -6561,16 +6561,7 @@ void QPainter::fillRect(const QRectF &r, const QColor &color)
*/
void QPainter::setRenderHint(RenderHint hint, bool on)
{
#ifdef QT_DEBUG_DRAW
printf("QPainter::setRenderHint: hint=%x, %s\n", hint, on ? "on" : "off");
#endif
#ifndef QT_NO_DEBUG
static const bool antialiasingDisabled = qgetenv("QT_NO_ANTIALIASING").toInt();
if (hint == QPainter::Antialiasing && antialiasingDisabled)
return;
#endif
// ### possibly inline
setRenderHints(hint, on);
}

View file

@ -560,11 +560,6 @@ struct Q_AUTOTEST_EXPORT Selector
QString pseudoElement() const;
};
struct StyleRule;
struct MediaRule;
struct PageRule;
struct ImportRule;
struct Q_AUTOTEST_EXPORT ValueExtractor
{
ValueExtractor(const QVector<Declaration> &declarations, const QPalette & = QPalette());

View file

@ -250,8 +250,7 @@ void QSvgTinyDocument::draw(QPainter *p, const QRectF &bounds)
pen.setMiterLimit(4);
p->setPen(pen);
p->setBrush(Qt::black);
p->setRenderHint(QPainter::Antialiasing);
p->setRenderHint(QPainter::SmoothPixmapTransform);
p->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
QList<QSvgNode*>::iterator itr = m_renderers.begin();
applyStyle(p, m_states);
while (itr != m_renderers.end()) {