12 #include "KDChartAbstractAreaWidget_p.h"
14 #include <KDABLibFakes>
18 AbstractAreaWidget::Private::Private()
23 AbstractAreaWidget::Private::~Private()
28 void AbstractAreaWidget::Private::resizeLayout(
31 if (size == currentLayoutSize)
34 currentLayoutSize = size;
42 const QSize innerSize(size.width() - left - right,
43 size.height() - top - bottom);
62 void AbstractAreaWidget::init()
83 QPainter painter(
this);
84 if (size() !=
d->currentLayoutSize) {
85 d->resizeLayout(
this, size());
95 d->resizeLayout(
this, rect.size());
97 const QPoint translation(rect.topLeft());
98 painter.translate(translation);
100 painter.translate(-translation.x(), -translation.y());
129 paintFrame(painter, QRect(QPoint(0, 0), size()));
159 const QPoint translation(left, top);
160 painter.translate(translation);
162 painter.translate(-translation.x(), -translation.y());
Base class for AbstractArea and AbstractAreaWidget: An area in the chart with a background,...
void getFrameLeadings(int &left, int &top, int &right, int &bottom) const
virtual void paintFrame(QPainter &painter, const QRect &rectangle)
virtual void paintBackground(QPainter &painter, const QRect &rectangle)