24 #include "KDChartPieAttributes_p.h" 28 #include <KDABLibFakes> 36 PieAttributes::Private::Private()
37 : explodeFactor( 0.0 )
38 , tangentialGapFactor( 0.0 )
39 , radialGapFactor( 0.0 )
44 PieAttributes::PieAttributes()
50 : _d( new Private( *r.
d ) )
79 void PieAttributes::init( )
86 d->explodeFactor = (enabled ? 0.1 : 0.0);
91 return (
d->explodeFactor != 0.0);
96 d->explodeFactor = factor;
101 return d->explodeFactor;
107 d->tangentialGapFactor = factor;
109 d->radialGapFactor = factor;
114 return circular ?
d->tangentialGapFactor :
d->radialGapFactor;
117 #if !defined(QT_NO_DEBUG_STREAM) 120 dbg <<
"KDChart::PieAttributes(";
void setGapFactor(bool circular, qreal factor)
PieAttributes & operator=(const PieAttributes &)
bool operator==(const PieAttributes &) const
A set of attributes controlling the appearance of pie charts.
void setExplode(bool explode)
Enable or disable exploding the respective pie piece(s).
qreal explodeFactor() const
QDebug operator<<(QDebug stream, const DataDimension &r)
void setExplodeFactor(qreal factor)
Set the explode factor.
qreal gapFactor(bool circular) const