9#include "KChartBackgroundAttributes.h"
11#include "KChartMath_p.h"
28 BackgroundPixmapMode pixmapMode;
32BackgroundAttributes::Private::Private() :
39BackgroundAttributes::BackgroundAttributes()
45 : _d( new Private( *r.d ) )
61 return isEqualTo( r );
65bool BackgroundAttributes::isEqualTo(
76 isVisible() == other.isVisible() &&
77 brush() == other.brush() &&
78 pixmapMode() == other.pixmapMode() &&
80 pixmap().cacheKey() == other.pixmap().
cacheKey()) );
84BackgroundAttributes::~BackgroundAttributes()
86 delete _d; _d =
nullptr;
92void BackgroundAttributes::setVisible(
bool visible )
98bool BackgroundAttributes::isVisible()
const
103void BackgroundAttributes::setBrush(
const QBrush &brush )
108QBrush BackgroundAttributes::brush()
const
113void BackgroundAttributes::setPixmapMode( BackgroundPixmapMode mode )
115 d->pixmapMode = mode;
118BackgroundAttributes::BackgroundPixmapMode BackgroundAttributes::pixmapMode()
const
120 return d->pixmapMode;
123void BackgroundAttributes::setPixmap(
const QPixmap &backPixmap )
125 d->pixmap = backPixmap;
128QPixmap BackgroundAttributes::pixmap()
const
133#if !defined(QT_NO_DEBUG_STREAM)
136 dbg <<
"KChart::BackgroundAttributes("
137 <<
"visible="<<ba.isVisible()
138 <<
"brush="<<ba.brush()
139 <<
"pixmapmode="<<ba.pixmapMode()
140 <<
"pixmap="<<ba.pixmap().
cacheKey()
Set of attributes usable for background pixmaps.
QDebug operator<<(QDebug dbg, const PerceptualColor::MultiSpinBoxSection &value)
qint64 cacheKey() const const