From be0f2e0e8de184380047f71f88cbdf0c23e94bd9 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 5 May 2013 13:51:02 -0300 Subject: Enabled some Render Hints for Antialiasing Enabled some Render Hints for Antialiasing and smooth transformations. Signed-off-by: Tomaz Canabrava --- qt-ui/profilegraphics.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qt-ui/profilegraphics.cpp') 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(); } -- cgit v1.2.3-70-g09d2