 |
KD Chart 2
[rev.2.7]
|
Go to the documentation of this file.
23 #ifndef KDCHARTMEASURE_H
24 #define KDCHARTMEASURE_H
62 qreal
value()
const {
return mValue; }
76 mOrientation = orientation;
115 const QSizeF sizeOfArea(
const QObject* area )
const;
153 static void setFactors(qreal factorX, qreal factorY);
177 QStack< QPair< qreal, qreal > > mFactors;
183 #if !defined(QT_NO_DEBUG_STREAM)
187 #endif // KDCHARTMEASURE_H
static void setFactors(qreal factorX, qreal factorY)
Set new factors to be used by all Measure objects from now on.
static QPaintDevice * paintDevice()
Return the paint device to use for calculating font metrics.
const QObject * referenceArea() const
The returned reference area will be derived from AbstractArea or QWidget or both.
static const QPair< qreal, qreal > currentFactors()
Return the currently active factors.
@ MeasureCalculationModeAuto
KDChartEnums::MeasureOrientation referenceOrientation() const
static void setPaintDevice(QPaintDevice *paintDevice)
Set the paint device to use for calculating font metrics.
void setReferenceOrientation(KDChartEnums::MeasureOrientation orientation)
void setAbsoluteValue(qreal val)
Measure is used to specify relative and absolute sizes in KDChart, e.g.
void setReferenceArea(const QObject *area)
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derive...
bool operator==(const Span &s1, const Span &s2)
static GlobalMeasureScaling * instance()
Definition of global enums.
@ MeasureCalculationModeAbsolute
bool operator!=(const Measure &other) const
MeasureOrientation
Measure orientation mode: the way how the absolute value of a KDChart::Measure is determined during K...
void setCalculationMode(KDChartEnums::MeasureCalculationMode mode)
static void resetFactors()
Restore factors to the values before the previous call to setFactors.
KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::Measure &)
@ MeasureCalculationModeRelative
Auxiliary class used by the KDChart::Measure and KDChart::Chart class.
MeasureCalculationMode
Measure calculation mode: the way how the absolute value of a KDChart::Measure is determined during K...
KDChartEnums::MeasureCalculationMode calculationMode() const
void setRelativeMode(const QObject *area, KDChartEnums::MeasureOrientation orientation)
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derive...
virtual ~GlobalMeasureScaling()