12 #include "KDChartAbstractThreeDAttributes_p.h"
14 #include <KDABLibFakes>
22 AbstractThreeDAttributes::Private::Private()
32 : _d(new Private(*r.
d))
57 void AbstractThreeDAttributes::init()
88 return d->threeDBrushEnabled;
93 d->threeDBrushEnabled = enabled;
99 QLinearGradient gr(rect.topLeft(), rect.bottomRight());
100 gr.setColorAt(0.0, brush.color());
101 gr.setColorAt(0.5, brush.color().lighter(180));
102 gr.setColorAt(1.0, brush.color());
108 #if !defined(QT_NO_DEBUG_STREAM)
112 <<
"depth=" << a.
depth();
Base class for 3D attributes.
void setThreeDBrushEnabled(bool enabled)
virtual QBrush threeDBrush(const QBrush &brush, const QRectF &rect) const
void setEnabled(bool enabled)
AbstractThreeDAttributes()
bool operator==(const AbstractThreeDAttributes &) const
bool isThreeDBrushEnabled() const
AbstractThreeDAttributes & operator=(const AbstractThreeDAttributes &)
void setDepth(qreal depth)
virtual ~AbstractThreeDAttributes()=0
QDebug operator<<(QDebug stream, const DataDimension &r)