diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-20 07:05:16 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-20 07:05:16 (GMT) |
commit | 270ab71cc891b541f77176573c2db3e141aae938 (patch) | |
tree | 3d52b94ccf7b5c3543afe455d9d1c9c0713b7efe /src/declarative/graphicsitems/qmlgraphicspainteditem_p.h | |
parent | d83126a49e9b061a545aa51500bc3e647dd4f624 (diff) | |
download | Qt-270ab71cc891b541f77176573c2db3e141aae938.zip Qt-270ab71cc891b541f77176573c2db3e141aae938.tar.gz Qt-270ab71cc891b541f77176573c2db3e141aae938.tar.bz2 |
Fix painting onto devices with no system clip (eg. pixmaps).
Move pixelCacheSize to PaintedItem (remove its "cacheSize").
Diffstat (limited to 'src/declarative/graphicsitems/qmlgraphicspainteditem_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicspainteditem_p.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicspainteditem_p.h b/src/declarative/graphicsitems/qmlgraphicspainteditem_p.h index 0805330..f6bb078 100644 --- a/src/declarative/graphicsitems/qmlgraphicspainteditem_p.h +++ b/src/declarative/graphicsitems/qmlgraphicspainteditem_p.h @@ -58,9 +58,10 @@ class Q_DECLARATIVE_EXPORT QmlGraphicsPaintedItem : public QmlGraphicsItem Q_PROPERTY(QSize contentsSize READ contentsSize WRITE setContentsSize) Q_PROPERTY(QColor fillColor READ fillColor WRITE setFillColor NOTIFY fillColorChanged) - Q_PROPERTY(int cacheSize READ cacheSize WRITE setCacheSize) + Q_PROPERTY(int pixelCacheSize READ pixelCacheSize WRITE setPixelCacheSize) Q_PROPERTY(bool smoothCache READ smoothCache WRITE setSmoothCache) + public: QmlGraphicsPaintedItem(QmlGraphicsItem *parent=0); ~QmlGraphicsPaintedItem(); @@ -68,8 +69,8 @@ public: QSize contentsSize() const; void setContentsSize(const QSize &); - int cacheSize() const; - void setCacheSize(int pixels); + int pixelCacheSize() const; + void setPixelCacheSize(int pixels); bool smoothCache() const; void setSmoothCache(bool on); |