18#include "KReportScriptLabel.h"
25Label::Label(KReportItemLabel *l)
37 return m_label->text();
40void Label::setCaption(
const QString& c)
45int Label::horizontalAlignment()
const
60void Label::setHorizonalAlignment(
int a)
78int Label::verticalAlignment()
const
93void Label::setVerticalAlignment(
int a)
111QColor Label::backgroundColor()
const
115void Label::setBackgroundColor(
const QColor& c)
117 m_label->m_backgroundColor->
setValue(c);
120QColor Label::foregroundColor()
const
124void Label::setForegroundColor(
const QColor& c)
126 m_label->m_foregroundColor->
setValue(c);
129int Label::backgroundOpacity()
const
131 return m_label->m_backgroundOpacity->
value().
toInt();
133void Label::setBackgroundOpacity(
int o)
135 m_label->m_backgroundOpacity->
setValue(o);
138QColor Label::lineColor()
const
142void Label::setLineColor(
const QColor& c)
147int Label::lineWeight()
const
149 return m_label->m_lineWeight->
value().
toInt();
151void Label::setLineWeight(
int w)
156int Label::lineStyle()
const
160void Label::setLineStyle(
int s)
162 if (s < 0 || s > 5) {
172void Label::setPosition(
const QPointF &p)
179 return m_label->
size();
181void Label::setSize(
const QSizeF &s)
bool setValue(const QVariant &value, ValueOptions options=ValueOptions())
void setSize(const QSizeF &ptSize)
Sets size for the element.
QPointF position() const
Return the position in points.
void setPosition(const QPointF &ptPos)
Sets position for the element.
QSizeF size() const
Return the size in points.
Field item script interface.
QString toLower() const const
int toInt(bool *ok) const const
QString toString() const const