diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-05 13:51:02 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-05 09:55:56 -0700 |
commit | be0f2e0e8de184380047f71f88cbdf0c23e94bd9 (patch) | |
tree | 3192f7f7ccd583938da6903aa43d72886d720d28 | |
parent | 1238fde17c9ef65dad81ccbc1145c41192af8e06 (diff) | |
download | subsurface-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.cpp | 5 |
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(); } |