24 #include "KDChartHeaderFooter_p.h" 30 #include <QAbstractTextDocumentLayout> 31 #include <QTextDocumentFragment> 37 #include <KDABLibFakes> 41 HeaderFooter::Private::Private() :
47 HeaderFooter::Private::~Private()
67 QObject::setParent( parent );
73 void HeaderFooter::init()
76 ta.
setPen( QPen(Qt::black) );
77 ta.
setFont( QFont( QLatin1String(
"helvetica" ), 10, QFont::Bold,
false ) );
115 if (
d->type != type ) {
128 if (
d->position != position ) {
void setAutoReferenceArea(const QObject *area)
A chart with one or more diagrams.
void setPen(const QPen &pen)
Set the pen to use for rendering the text.
TextAttributes textAttributes() const
Returns the text attributes to be used for this item.
virtual void setParentWidget(QWidget *widget)
Inform the item about its widget: This enables the item, to trigger that widget's update...
A text area in the chart with a background, a frame, etc.
const QObject * autoReferenceArea() const
void setText(const QString &text)
void setFontSize(const Measure &measure)
Set the size of the font used for rendering text.
void setFont(const QFont &font)
Set the font to be used for rendering the text.
void setTextAttributes(const TextAttributes &a)
Use this to specify the text attributes to be used for this item.
void setRelativeMode(const QObject *area, KDChartEnums::MeasureOrientation orientation)
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derive...
Measure is used to specify relative and absolute sizes in KDChart, e.g.
Class only listed here to document inheritance of some KDChart classes.
void setMinimalFontSize(const Measure &measure)
Set the minimal size of the font used for rendering text.
Defines a position, using compass terminology.
void setCalculationMode(KDChartEnums::MeasureCalculationMode mode)
A set of text attributes.