33 #include <KDABLibFakes>
54 mOrientation( orientation )
60 : mValue( r.value() ),
61 mMode( r.calculationMode() ),
62 mArea( r.referenceArea() ),
63 mOrientation( r.referenceOrientation() )
89 const QObject* autoArea = &theAutoArea;
90 const QObject* area = mArea ? mArea : autoArea;
95 orientation = autoOrientation;
101 orientation = autoOrientation;
109 if ( area == autoArea )
114 qreal referenceValue = 0;
115 switch ( orientation ) {
118 referenceValue = qMin( size.width(), size.height() );
121 referenceValue = qMax( size.width(), size.height() );
124 referenceValue = size.width();
127 referenceValue = size.height();
130 value = mValue / 1000.0 * referenceValue;
153 size = kdcArea->geometry().size();
165 size = widget->geometry().size();
169 size = QSizeF(1.0, 1.0);
176 return QSizeF(size.width() * factors.first, size.height() * factors.second);
182 return( mValue == r.
value() &&
192 mFactors.push( qMakePair(qreal(1.0), qreal(1.0)) );
208 instance()->mFactors.push( qMakePair(factorX, factorY) );
214 if (
instance()->mFactors.count() > 1 )
235 #if !defined(QT_NO_DEBUG_STREAM)
238 dbg <<
"KDChart::Measure("
239 <<
"value="<<m.
value()