diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2011-05-03 14:41:52 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2011-05-03 14:41:52 +0200 |
commit | 9267a7bce715924a96c8636a3110d90879e5927c (patch) | |
tree | 8b52a8feb99f3eaaef12ba45aaefa68830ee6549 /examples | |
parent | d3be822c1bc167878ae75943c39dfb3f40bb3800 (diff) |
Added antialiasing property to QSGPaintedItem.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/painteditem/main.cpp | 5 |
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()); |