forked from len0rd/rockbox
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
This commit is contained in:
parent
851be21f67
commit
83c60a1012
10 changed files with 166 additions and 29 deletions
|
|
@ -25,7 +25,9 @@
|
|||
#include <QPixmap>
|
||||
#include <QGraphicsItem>
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue