mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
various cleanups
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
4989d40988
commit
4e1b4b4501
3 changed files with 2 additions and 17 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue