Image

Worksheet element to draw images.

Public Methods

void

Image(const QString &name)

Line*

borderLine() const

void

handleResize(double horizontalRatio, double verticalRatio, bool pageResize) override

QIcon

icon() const override

bool

load(XmlStreamReader *, bool preview) override

void

loadThemeConfig(const KConfig &) override

void

retransform() override

void

save(QXmlStreamWriter *) const override

void

saveThemeConfig(const KConfig &) override

void

setParentGraphicsItem(QGraphicsItem *) override

Detailed Description

class Image : public WorksheetElement

Worksheet element to draw images.

The image can be added to Worksheet or to CartesianPlot and is aligned relative to the specified position. The position can be either specified by providing the x- and y- coordinates in parent’s coordinate system, or by specifying one of the predefined position flags (HorizontalPosition, VerticalPosition).

Public Functions

virtual QIcon icon() const override

Returns an icon to be used in the project explorer.

virtual void setParentGraphicsItem(QGraphicsItem*) override

WorksheetElement::setParentGraphicsItem Sets the parent graphicsitem, needed for binding to coord.

Parameters:

item – parent graphicsitem

virtual void save(QXmlStreamWriter*) const override

Save as XML.

virtual bool load(XmlStreamReader*, bool preview) override

Load from XML.