summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-09 09:13:22 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-11-09 09:13:22 (GMT)
commitabe04b845ea19110dbbc06ba443fe1bf6a29ee92 (patch)
tree4167fb49263e3efd230990e6d700c300bb61245b
parent434a75313ea30a5fb2d45ecd857b19919b5e7547 (diff)
downloadQt-abe04b845ea19110dbbc06ba443fe1bf6a29ee92.zip
Qt-abe04b845ea19110dbbc06ba443fe1bf6a29ee92.tar.gz
Qt-abe04b845ea19110dbbc06ba443fe1bf6a29ee92.tar.bz2
Pixelalign circles in HTML bullet lists
Reviewed-by: Eskil
-rw-r--r--src/gui/text/qtextdocumentlayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextdocumentlayout.cpp b/src/gui/text/qtextdocumentlayout.cpp
index 03eb723..85265af 100644
--- a/src/gui/text/qtextdocumentlayout.cpp
+++ b/src/gui/text/qtextdocumentlayout.cpp
@@ -1449,7 +1449,7 @@ void QTextDocumentLayoutPrivate::drawListItem(const QPointF &offset, QPainter *p
break;
case QTextListFormat::ListCircle:
painter->setPen(QPen(brush));
- painter->drawEllipse(r);
+ painter->drawEllipse(r.translated(0.5, 0.5)); // pixel align for sharper rendering
break;
case QTextListFormat::ListDisc:
painter->setBrush(brush);