aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2011-05-03 14:41:52 +0200
committerYoann Lopes <yoann.lopes@nokia.com>2011-05-03 14:41:52 +0200
commit9267a7bce715924a96c8636a3110d90879e5927c (patch)
tree8b52a8feb99f3eaaef12ba45aaefa68830ee6549 /examples
parentd3be822c1bc167878ae75943c39dfb3f40bb3800 (diff)
Added antialiasing property to QSGPaintedItem.
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/painteditem/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/declarative/painteditem/main.cpp b/examples/declarative/painteditem/main.cpp
index 1308325ca3..10bd4302c9 100644
--- a/examples/declarative/painteditem/main.cpp
+++ b/examples/declarative/painteditem/main.cpp
@@ -47,6 +47,11 @@ class MyPaintItem : public QSGPaintedItem
{
Q_OBJECT
public:
+ MyPaintItem() : QSGPaintedItem()
+ {
+ setAntialiasing(true);
+ }
+
virtual void paint(QPainter *p)
{
QRectF rect(0, 0, width(), height());