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
Class only listed here to document inheritance of some KChart classes.
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
void setMinimalFontSize(const Measure &measure)
Set the minimal size of the font used for rendering text.
Definition: KChartTextAttributes.cpp:136
void setFont(const QFont &font)
Set the font to be used for rendering the text.
Definition: KChartTextAttributes.cpp:114
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
void setPen(const QPen &pen)
Set the pen to use for rendering the text.
Definition: KChartTextAttributes.cpp:242
Cartesian coordinate plane.
Definition: KChartCartesianCoordinatePlane.h:25
MeasureOrientation
Measure orientation mode: the way how the absolute value of a KChart::Measure is determined during KC...
Definition: KChartEnums.h:282
void setRotation(int rotation)
Set the rotation angle to use for the text.
Definition: KChartTextAttributes.cpp:220
QString toString() const const
void setFontSize(const Measure &measure)
Set the size of the font used for rendering text.
Definition: KChartTextAttributes.cpp:126
qreal calculatedFontSize(const QSizeF &referenceSize, KChartEnums::MeasureOrientation autoReferenceOrientation) const
Returns the font size that is used at drawing time.
Definition: KChartTextAttributes.cpp:152
Measure is used to specify relative and absolute sizes in KChart, e.g. font sizes.
Definition: KChartMeasure.h:37
void setVisible(bool visible)
Set whether the text is to be rendered at all.
Definition: KChartTextAttributes.cpp:104
void setAutoShrink(bool autoShrink)
Set whether the text should automatically be shrunk if space is tight.
Definition: KChartTextAttributes.cpp:210
bool hasAbsoluteFontSize() const
Definition: KChartTextAttributes.cpp:146
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
Measure minimalFontSize() const
Definition: KChartTextAttributes.cpp:141
black
void setAutoRotate(bool autoRotate)
Set whether the text should be automatically rotated as needed when space is tight.
Definition: KChartTextAttributes.cpp:200
virtual QVariant get(ScriptableExtension *callerPrincipal, quint64 objId, const QString &propName)
QTextDocument * textDocument() const
Definition: KChartTextAttributes.cpp:252
void setTextDocument(QTextDocument *layout)
Sets the document to use for the text.
Definition: KChartTextAttributes.cpp:257
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 03:52:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 03:52:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.