summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qmlgraphicspainteditem_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/graphicsitems/qmlgraphicspainteditem_p.h')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicspainteditem_p.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicspainteditem_p.h b/src/declarative/graphicsitems/qmlgraphicspainteditem_p.h
index f6bb078..ab21f36 100644
--- a/src/declarative/graphicsitems/qmlgraphicspainteditem_p.h
+++ b/src/declarative/graphicsitems/qmlgraphicspainteditem_p.h
@@ -42,8 +42,7 @@
#ifndef QMLGRAPHICSIMAGEITEM_H
#define QMLGRAPHICSIMAGEITEM_H
-#include <qmlgraphicsitem.h>
-
+#include "qmlgraphicsitem.h"
QT_BEGIN_HEADER
@@ -56,10 +55,11 @@ class Q_DECLARATIVE_EXPORT QmlGraphicsPaintedItem : public QmlGraphicsItem
{
Q_OBJECT
- Q_PROPERTY(QSize contentsSize READ contentsSize WRITE setContentsSize)
+ Q_PROPERTY(QSize contentsSize READ contentsSize WRITE setContentsSize NOTIFY contentsSizeChanged)
Q_PROPERTY(QColor fillColor READ fillColor WRITE setFillColor NOTIFY fillColorChanged)
Q_PROPERTY(int pixelCacheSize READ pixelCacheSize WRITE setPixelCacheSize)
Q_PROPERTY(bool smoothCache READ smoothCache WRITE setSmoothCache)
+ Q_PROPERTY(qreal contentsScale READ contentsScale WRITE setContentsScale NOTIFY contentsScaleChanged)
public:
@@ -69,6 +69,9 @@ public:
QSize contentsSize() const;
void setContentsSize(const QSize &);
+ qreal contentsScale() const;
+ void setContentsScale(qreal);
+
int pixelCacheSize() const;
void setPixelCacheSize(int pixels);
@@ -89,6 +92,8 @@ protected:
Q_SIGNALS:
void fillColorChanged();
+ void contentsSizeChanged();
+ void contentsScaleChanged();
protected Q_SLOTS:
void dirtyCache(const QRect &);