From 83c60a1012f2db6c21c5779f7e11b2f3e479df85 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Tue, 3 Aug 2010 22:29:26 +0000 Subject: Theme Editor: Created the RBMovable abstract class for screen elements that can be moved around, began implementing it and making images, viewports, and album art children of it git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27685 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/graphics/rbimage.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'utils/themeeditor/graphics/rbimage.h') diff --git a/utils/themeeditor/graphics/rbimage.h b/utils/themeeditor/graphics/rbimage.h index abfe8eb..f9562b8 100644 --- a/utils/themeeditor/graphics/rbimage.h +++ b/utils/themeeditor/graphics/rbimage.h @@ -25,7 +25,9 @@ #include #include -class RBImage: public QGraphicsItem +#include "rbmovable.h" + +class RBImage: public RBMovable { public: RBImage(QString file, int tiles, int x, int y, QGraphicsItem* parent = 0); @@ -44,6 +46,9 @@ public: } +protected: + void saveGeometry(); + private: QPixmap* image; int tiles; -- cgit v1.1