12 #include "KDChartPieAttributes_p.h"
16 #include <KDABLibFakes>
22 PieAttributes::Private::Private()
32 : _d(new Private(*r.
d))
57 void PieAttributes::init()
63 d->explodeFactor = (enabled ? 0.1 : 0.0);
68 return (
d->explodeFactor != 0.0);
73 d->explodeFactor = factor;
78 return d->explodeFactor;
84 d->tangentialGapFactor = factor;
86 d->radialGapFactor = factor;
91 return circular ?
d->tangentialGapFactor :
d->radialGapFactor;
94 #if !defined(QT_NO_DEBUG_STREAM)
97 dbg <<
"KDChart::PieAttributes(";
A set of attributes controlling the appearance of pie charts.
qreal gapFactor(bool circular) const
PieAttributes & operator=(const PieAttributes &)
qreal explodeFactor() const
void setGapFactor(bool circular, qreal factor)
void setExplodeFactor(qreal factor)
bool operator==(const PieAttributes &) const
void setExplode(bool explode)
Enable or disable exploding the respective pie piece(s).
QDebug operator<<(QDebug stream, const DataDimension &r)