summaryrefslogtreecommitdiffstats
path: root/demos/sub-attaq/pixmapitem.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-10-06 23:56:02 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-10-06 23:56:02 (GMT)
commitb8d72b6bf833ffd7e02afa1199a5d3beea8fe9a7 (patch)
treeac169cc9df2ff639e81b15dcaf268ed09d2e16cb /demos/sub-attaq/pixmapitem.h
parent5584feca163e91588f08b0aa1f3ae2817cd90823 (diff)
parentd7fe798e022884dcbc58844e686a7d4fd39cf027 (diff)
downloadQt-b8d72b6bf833ffd7e02afa1199a5d3beea8fe9a7.zip
Qt-b8d72b6bf833ffd7e02afa1199a5d3beea8fe9a7.tar.gz
Qt-b8d72b6bf833ffd7e02afa1199a5d3beea8fe9a7.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'demos/sub-attaq/pixmapitem.h')
-rw-r--r--demos/sub-attaq/pixmapitem.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/demos/sub-attaq/pixmapitem.h b/demos/sub-attaq/pixmapitem.h
index b176215..57f831a 100644
--- a/demos/sub-attaq/pixmapitem.h
+++ b/demos/sub-attaq/pixmapitem.h
@@ -46,18 +46,18 @@
#include "graphicsscene.h"
//Qt
-#include <QtGui/QGraphicsPixmapItem>
+#include <QtGui/QGraphicsObject>
-class PixmapItem : public QGraphicsPixmapItem
+class PixmapItem : public QGraphicsObject
{
public:
PixmapItem(const QString &fileName, GraphicsScene::Mode mode, QGraphicsItem * parent = 0);
-
+ PixmapItem(const QString &fileName, QGraphicsScene *scene);
+ QSizeF size() const;
+ QRectF boundingRect() const;
+ void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
private:
- void loadPixmap(GraphicsScene::Mode mode);
-
- QString name;
- QPixmap pixmap;
+ QPixmap pix;
};
#endif //__PIXMAPITEM__H__