X-Git-Url: http://git.maemo.org/git/?p=jspeed;a=blobdiff_plain;f=src%2Frectangle.h;h=b412dc17a9c2aa1efac0978216c052e2c16b441f;hp=b9c1fb6b728d19f2c26f3144b5b7cf8d8b126f44;hb=HEAD;hpb=8e096b9ac91af0adc17ff4c5b74ca3061cd55cdb diff --git a/src/rectangle.h b/src/rectangle.h index b9c1fb6..b412dc1 100644 --- a/src/rectangle.h +++ b/src/rectangle.h @@ -24,17 +24,19 @@ class QString; class QGraphicsRectItem; +class QGraphicsItem; class Reader; class GraphicsScene; class Rectangle : public GraphicsElement { public: - enum Attribute {XPOS, YPOS, WIDTH, HEIGHT, COLOR, ATTRIBUTE_COUNT}; + enum Attribute {XPOS, YPOS, ZPOS, VISIBLEWHEN, WIDTH, HEIGHT, COLOR, ATTRIBUTE_COUNT}; Rectangle(Reader* reader); virtual bool setAttribute(QString const& name, QString const& value); virtual void addToScene(GraphicsScene* scene); virtual void update(); + virtual QGraphicsItem* getElement() const; private: QGraphicsRectItem* element_;