KChart
KChartMeasure.h
Go to the documentation of this file.
92 void setReferenceOrientation( KChartEnums::MeasureOrientation orientation ) { mOrientation = orientation; }
99 qreal calculatedValue( const QObject * autoArea, KChartEnums::MeasureOrientation autoOrientation ) const;
100 qreal calculatedValue( const QSizeF& autoSize, KChartEnums::MeasureOrientation autoOrientation ) const;
const QObject * referenceArea() const
The returned reference area will be derived from AbstractArea or QWidget or both.
Definition: KChartMeasure.h:90
QDataStream & operator<<(QDataStream &out, const KDateTime &dateTime)
MeasureCalculationMode
Measure calculation mode: the way how the absolute value of a KChart::Measure is determined during KC...
Definition: KChartEnums.h:211
void setRelativeMode(const QObject *area, KChartEnums::MeasureOrientation orientation)
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derive...
Definition: KChartMeasure.h:57
static void setPaintDevice(QPaintDevice *paintDevice)
Set the paint device to use for calculating font metrics.
Definition: KChartMeasure.cpp:206
Auxiliary class used by the KChart::Measure and KChart::Chart class.
Definition: KChartMeasure.h:126
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
static const QPair< qreal, qreal > currentFactors()
Return the currently active factors.
Definition: KChartMeasure.cpp:201
static void resetFactors()
Restore factors to the values before the previous call to setFactors.
Definition: KChartMeasure.cpp:194
MeasureOrientation
Measure orientation mode: the way how the absolute value of a KChart::Measure is determined during KC...
Definition: KChartEnums.h:282
bool operator!=(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Definition of global enums.
Measure is used to specify relative and absolute sizes in KChart, e.g. font sizes.
Definition: KChartMeasure.h:37
static void setFactors(qreal factorX, qreal factorY)
Set new factors to be used by all Measure objects from now on.
Definition: KChartMeasure.cpp:189
static QPaintDevice * paintDevice()
Return the paint device to use for calculating font metrics.
Definition: KChartMeasure.cpp:211
void setReferenceArea(const QObject *area)
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derive...
Definition: KChartMeasure.h:85
Contains KChart macros.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:57:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:57:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.