TextLabel
A label supporting rendering of HTML, Markdown and LaTeX formatted texts.
Public Types
enum BorderShapeenum Modeenum Type
Public Methods
|
TextLabel(const QString &name, Type=Type::General) |
|
TextLabel(const QString &name, CartesianPlot *, Type=Type::General) |
|
borderLine() const |
|
findNearestGluePoint(QPointF scenePoint) |
|
gluePointAt(int index) |
|
gluePointCount() |
|
handleResize(double horizontalRatio, double verticalRatio, bool pageResize) override |
|
icon() const override |
|
load(XmlStreamReader *, bool preview) override |
|
loadThemeConfig(const KConfig &) override |
|
retransform() override |
|
save(QXmlStreamWriter *) const override |
|
saveThemeConfig(const KConfig &) override |
|
setFont(const QFont &) |
|
setPlaceholderText(const TextWrapper &value) |
|
setZoomFactor(double) |
|
size() |
Detailed Description
-
class TextLabel : public WorksheetElement
A label supporting rendering of HTML, Markdown and LaTeX formatted texts.
The label 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 save(QXmlStreamWriter*) const override
Save as XML.
-
virtual bool load(XmlStreamReader*, bool preview) override
Load from XML.
-
struct GluePoint
-
virtual QIcon icon() const override