KChart
KChartTextAttributes.cpp
156 const qreal minimalSize = minimalFontSize().calculatedValue( referenceSize, autoReferenceOrientation );
166 const qreal normalSize = fontSize().calculatedValue( autoReferenceArea, autoReferenceOrientation );
167 const qreal minimalSize = minimalFontSize().calculatedValue( autoReferenceArea, autoReferenceOrientation );
176 const CartesianCoordinatePlane* plane = qobject_cast< const CartesianCoordinatePlane* >( autoReferenceArea );
179 // if hasFixedDataCoordinateSpaceRelation, we use a zoom trick to keep the diagram at a constant size
180 // even when the plane size changes. calculatedFontSize() usually uses the plane size, not the diagram
MeasureOrientation
Measure orientation mode: the way how the absolute value of a KChart::Measure is determined during KC...
Definition KChartEnums.h:282
Cartesian coordinate plane.
Definition KChartCartesianCoordinatePlane.h:26
Measure is used to specify relative and absolute sizes in KChart, e.g.
Definition KChartMeasure.h:38
qreal calculatedValue(const QObject *autoArea, KChartEnums::MeasureOrientation autoOrientation) const
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derive...
Definition KChartMeasure.cpp:121
bool hasAbsoluteFontSize() const
Definition KChartTextAttributes.cpp:146
void setFontSize(const Measure &measure)
Set the size of the font used for rendering text.
Definition KChartTextAttributes.cpp:126
void setAutoRotate(bool autoRotate)
Set whether the text should be automatically rotated as needed when space is tight.
Definition KChartTextAttributes.cpp:200
void setVisible(bool visible)
Set whether the text is to be rendered at all.
Definition KChartTextAttributes.cpp:104
void setMinimalFontSize(const Measure &measure)
Set the minimal size of the font used for rendering text.
Definition KChartTextAttributes.cpp:136
qreal calculatedFontSize(const QSizeF &referenceSize, KChartEnums::MeasureOrientation autoReferenceOrientation) const
Returns the font size that is used at drawing time.
Definition KChartTextAttributes.cpp:152
void setPen(const QPen &pen)
Set the pen to use for rendering the text.
Definition KChartTextAttributes.cpp:242
Measure minimalFontSize() const
Definition KChartTextAttributes.cpp:141
void setTextDocument(QTextDocument *layout)
Sets the document to use for the text.
Definition KChartTextAttributes.cpp:257
void setFont(const QFont &font)
Set the font to be used for rendering the text.
Definition KChartTextAttributes.cpp:114
QTextDocument * textDocument() const
Definition KChartTextAttributes.cpp:252
void setAutoShrink(bool autoShrink)
Set whether the text should automatically be shrunk if space is tight.
Definition KChartTextAttributes.cpp:210
void setRotation(int rotation)
Set the rotation angle to use for the text.
Definition KChartTextAttributes.cpp:220
const QFont calculatedFont(const QObject *autoReferenceArea, KChartEnums::MeasureOrientation autoReferenceOrientation) const
Returns the font in the size that is used at drawing time.
Definition KChartTextAttributes.cpp:171
QString toString() const const
black
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 1 2024 18:52:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 1 2024 18:52:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.