KReport
KReportItemBase.cpp
78 positionProperty = new KProperty("position", QPointF(), QCoreApplication::translate("ItemPosition", "Position"));
98 connect(propertySet(), &KPropertySet::aboutToDeleteProperty, this, &KReportItemBase::aboutToDeleteProperty);
117bool KReportItemBase::parseReportTextStyleData(const QDomElement & elemSource, KReportTextStyleData *ts)
122bool KReportItemBase::parseReportLineStyleData(const QDomElement & elemSource, KReportLineStyle *ls)
void aboutToDeleteProperty(KPropertySet &set, KProperty &property)
void addProperty(KProperty *property, const QByteArray &group="common")
void propertyChanged(KPropertySet &set, KProperty &property)
QVariant value() const
void setValueSyncPolicy(ValueSyncPolicy policy)
bool setValue(const QVariant &value, ValueOptions options=ValueOptions())
void setOption(const char *name, const QVariant &val)
static QPointF scenePosition(const QPointF &ptPos)
Helper function mapping to screen units (pixels), ptPos is in points.
Definition KReportItemBase.cpp:235
virtual int renderSimpleData(OROPage *page, OROSection *section, const QPointF &offset, const QVariant &data, KReportScriptHandler *script)
Render the item into a primitive which is used by the second stage renderer.
Definition KReportItemBase.cpp:146
static QSizeF sceneSize(const QSizeF &ptSize)
Helper function mapping to screen units (pixels), ptSize is in points.
Definition KReportItemBase.cpp:242
virtual bool supportsSubQuery() const
Override if the item uses a sub query and linked fields, such as a chart or sub-report.
Definition KReportItemBase.cpp:185
void setPosition(const QPointF &ptPos)
Sets position for the element.
Definition KReportItemBase.cpp:259
static QPointF positionFromScene(const QPointF &pos)
Helper function mapping from screen units to points, pos is in pixels.
Definition KReportItemBase.cpp:269
static QSizeF sizeFromScene(const QSizeF &size)
Helper function mapping from screen units to points, size is in pixels.
Definition KReportItemBase.cpp:276
virtual void setUnit(const KReportUnit &u)
Sets unit to a and converts values of position and size property from the old unit to new if needed.
Definition KReportItemBase.cpp:141
virtual int renderReportData(OROPage *page, OROSection *section, const QPointF &offset, KReportDataSource *dataSource, KReportScriptHandler *script)
Render a complex item that uses a sub query as a data source.
Definition KReportItemBase.cpp:157
The KReportLineStyle class represents line style.
Definition KReportLineStyle.shared.h:27
qreal convertFromPoint(qreal ptValue) const
Definition KReportUnit.cpp:228
static qreal convertFromUnitToUnit(qreal value, const KReportUnit &fromUnit, const KReportUnit &toUnit, qreal factor=1.0)
convert the given value directly from one unit to another with high accuracy
Definition KReportUnit.cpp:383
static QString symbol(KReportUnit::Type type)
Returns the symbol string of given unit type Symbol for Invalid type is empty string.
Definition KReportUnit.cpp:350
Represents a single page in a document and may contain zero or more OROPrimitive objects all of which...
Definition KReportRenderObjects.h:168
Represents a single a single row in a document and may contain zero or more OROPrimitives.
Definition KReportRenderObjects.h:198
QString translate(const char *context, const char *sourceText, const char *disambiguation, int n)
QVariant property(const char *name) const const
QString tr(const char *sourceText, const char *disambiguation, int n)
qreal x() const const
qreal y() const const
qreal height() const const
qreal width() const const
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QPointF toPointF() const const
QSizeF toSizeF() const const
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.