summaryrefslogtreecommitdiffstats
path: root/src/plugins/scenegraph/softwarecontext/rectanglenode.h
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@theqtcompany.com>2015-01-06 15:18:58 +0100
committerAndy Nichols <andy.nichols@theqtcompany.com>2015-01-08 12:42:45 +0200
commit5c4c7fe9b4a111d5e6071b67c3813b05c096e8c7 (patch)
tree21a805389a0f7f564982c9f45720d52c69365d83 /src/plugins/scenegraph/softwarecontext/rectanglenode.h
parentf311ab75f8a37d22ad208fb12ef451066a57c95e (diff)
Fix rendering of RectangleNode when devicePixelRatio != 1
Change-Id: Ice0f274afe5ca5e5f453bddc3c3b63f44bbef06c Reviewed-by: Paul Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'src/plugins/scenegraph/softwarecontext/rectanglenode.h')
-rw-r--r--src/plugins/scenegraph/softwarecontext/rectanglenode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/scenegraph/softwarecontext/rectanglenode.h b/src/plugins/scenegraph/softwarecontext/rectanglenode.h
index d3bcb2b8dc..5dfbf3b3bf 100644
--- a/src/plugins/scenegraph/softwarecontext/rectanglenode.h
+++ b/src/plugins/scenegraph/softwarecontext/rectanglenode.h
@@ -46,6 +46,7 @@ public:
private:
void paintRectangle(QPainter *painter, const QRect &rect);
+ void generateCornerPixmap();
QRect m_rect;
QColor m_color;
@@ -58,6 +59,8 @@ private:
bool m_cornerPixmapIsDirty;
QPixmap m_cornerPixmap;
+
+ int m_devicePixelRatio;
};
#endif // RECTANGLENODE_H