aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-05 13:51:02 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-05 09:55:56 -0700
commitbe0f2e0e8de184380047f71f88cbdf0c23e94bd9 (patch)
tree3192f7f7ccd583938da6903aa43d72886d720d28
parent1238fde17c9ef65dad81ccbc1145c41192af8e06 (diff)
downloadsubsurface-be0f2e0e8de184380047f71f88cbdf0c23e94bd9.tar.gz
Enabled some Render Hints for Antialiasing
Enabled some Render Hints for Antialiasing and smooth transformations. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
-rw-r--r--qt-ui/profilegraphics.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 053e3db0f..d5bf177f0 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -105,6 +105,11 @@ ProfileGraphicsView::ProfileGraphicsView(QWidget* parent) : QGraphicsView(parent
setScene(new QGraphicsScene());
setBackgroundBrush(QColor("#F3F3E6"));
scene()->setSceneRect(0,0,1000,1000);
+
+ setRenderHint(QPainter::Antialiasing);
+ setRenderHint(QPainter::HighQualityAntialiasing);
+ setRenderHint(QPainter::SmoothPixmapTransform);
+
fill_profile_color();
}