class ImageElement : public GraphicsElement
{
public:
- enum Attribute {XPOS, YPOS, SRC, ATTRIBUTE_COUNT};
+ enum Attribute {XPOS, YPOS, SRC, WIDTH, HEIGHT, ATTRIBUTE_COUNT};
ImageElement(Reader* reader);
virtual bool setAttribute(QString const& name, QString const& value);
virtual void addToScene(GraphicsScene* scene);
private:
bool loadImage(QString const& name);
QGraphicsPixmapItem* element_;
+ QPixmap pixmap_;
+ int width_;
+ int height_;
+ bool imageSet_;
};
#endif