forked from qt-creator/qt-creator
Help/litehtml: Use antialiasing and higher-quality image resizing
Change-Id: Ib0e48130c94e2cfdc25560339376c0ed130c56fa Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -528,6 +528,8 @@ void QLiteHtmlWidget::paintEvent(QPaintEvent *event)
|
||||
const litehtml::position clip = {r.x(), r.y(), r.width(), r.height()};
|
||||
QPainter p(viewport());
|
||||
p.setWorldTransform(QTransform().scale(d->zoomFactor, d->zoomFactor));
|
||||
p.setRenderHint(QPainter::SmoothPixmapTransform, true);
|
||||
p.setRenderHint(QPainter::Antialiasing, true);
|
||||
d->documentContainer.document()->draw(reinterpret_cast<litehtml::uint_ptr>(&p),
|
||||
pos.x(),
|
||||
pos.y(),
|
||||
|
Reference in New Issue
Block a user