aboutsummaryrefslogtreecommitdiffstats
path: root/softwarecontext/glyphnode.cpp
diff options
context:
space:
mode:
authorLouai Al-Khanji <louai.al-khanji@digia.com>2014-08-18 10:29:16 +0300
committerSimon Hausmann <simon.hausmann@digia.com>2014-08-18 10:29:57 +0300
commit3833d010c93b6c8d56ee8365e08ab47236e4af5a (patch)
treeec33ecb7939bdac5ffd52a0953df98d056a52c6d /softwarecontext/glyphnode.cpp
parent3574eed7f97e126459cdbd0ca63690e059f1e8d0 (diff)
Revert "Save and restore changed QPainter properties"
The above commit was accidentally pushed. This reverts commit 4e55b36b29e2114c7edfd53b62f04a6029bab6d6 Change-Id: I48bf983475e98365b62302ff0c37234a73774b79 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'softwarecontext/glyphnode.cpp')
-rw-r--r--softwarecontext/glyphnode.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/softwarecontext/glyphnode.cpp b/softwarecontext/glyphnode.cpp
index ecb8b3f6dc..eae8b626cb 100644
--- a/softwarecontext/glyphnode.cpp
+++ b/softwarecontext/glyphnode.cpp
@@ -64,9 +64,6 @@ void GlyphNode::update()
void GlyphNode::paint(QPainter *painter)
{
- QPen originalPen = painter->pen();
- QBrush originalBrush = painter->brush();
-
painter->setBrush(QBrush());
QPointF pos = m_position - QPointF(0, m_glyphRun.rawFont().ascent());
@@ -91,7 +88,4 @@ void GlyphNode::paint(QPainter *painter)
painter->setPen(m_color);
painter->drawGlyphRun(pos, m_glyphRun);
-
- painter->setPen(originalPen);
- painter->setBrush(originalBrush);
}