mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Enabled some Render Hints for Antialiasing
Enabled some Render Hints for Antialiasing and smooth transformations. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
1238fde17c
commit
be0f2e0e8d
1 changed files with 5 additions and 0 deletions
|
@ -105,6 +105,11 @@ ProfileGraphicsView::ProfileGraphicsView(QWidget* parent) : QGraphicsView(parent
|
||||||
setScene(new QGraphicsScene());
|
setScene(new QGraphicsScene());
|
||||||
setBackgroundBrush(QColor("#F3F3E6"));
|
setBackgroundBrush(QColor("#F3F3E6"));
|
||||||
scene()->setSceneRect(0,0,1000,1000);
|
scene()->setSceneRect(0,0,1000,1000);
|
||||||
|
|
||||||
|
setRenderHint(QPainter::Antialiasing);
|
||||||
|
setRenderHint(QPainter::HighQualityAntialiasing);
|
||||||
|
setRenderHint(QPainter::SmoothPixmapTransform);
|
||||||
|
|
||||||
fill_profile_color();
|
fill_profile_color();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue