KReport
KReportDesignerItemLine.cpp
52KReportDesignerItemLine::KReportDesignerItemLine(KReportDesigner * d, QGraphicsScene * scene, const QPointF &pos)
60KReportDesignerItemLine::KReportDesignerItemLine(KReportDesigner * d, QGraphicsScene * scene, const QPointF &startPos, const QPointF &endPos)
67KReportDesignerItemLine::KReportDesignerItemLine(const QDomNode & entity, KReportDesigner * d, QGraphicsScene * scene)
99 painter->setPen(QPen(m_lineColor->value().value<QColor>(), m_lineWeight->value().toInt(), (Qt::PenStyle)m_lineStyle->value().toInt()));
200 QPointF d = mapToItem(this, section->gridPoint(event->scenePos())) - mapToItem(this, section->gridPoint(event->lastScenePos()));
QVariant value() const
bool setValue(const QVariant &value, ValueOptions options=ValueOptions())
QByteArray name() const
Base class for report items used within the designer GUI.
Definition KReportDesignerItemBase.h:40
The ReportDesigner is the main widget for designing a report.
Definition KReportDesigner.h:53
KReportUnit pageUnit() const
Return the current unit assigned to the report.
Definition KReportDesigner.cpp:1044
QString suggestEntityName(const QString &name) const
Return a unique name that can be used by the entity.
Definition KReportDesigner.cpp:1351
void setModified(bool modified)
Sets the modified status, defaulting to true for modified.
Definition KReportDesigner.cpp:776
void changeSet(KPropertySet *set)
Sets the property set for the currently selected item.
Definition KReportDesigner.cpp:1178
static QPointF scenePosition(const QPointF &ptPos)
Helper function mapping to screen units (pixels), ptPos is in points.
Definition KReportItemBase.cpp:235
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
QCA_EXPORT void init()
QDomElement createElement(const QString &tagName)
void setAttribute(const QString &name, const QString &value)
QDomNode firstChild() const const
ItemIsSelectable
bool isSelected() const const
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value)
QPainterPath mapToItem(const QGraphicsItem *item, const QPainterPath &path) const const
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
QPointF pos() const const
QGraphicsScene * scene() const const
void setAcceptHoverEvents(bool enabled)
void setCursor(const QCursor &cursor)
void setFlags(GraphicsItemFlags flags)
void setPos(const QPointF &pos)
void setSelected(bool selected)
void setZValue(qreal z)
void unsetCursor()
void update(const QRectF &rect)
qreal x() const const
qreal y() const const
qreal zValue() const const
virtual bool contains(const QPointF &point) const const override
QLineF line() const const
void setLine(const QLineF &line)
void setPen(const QPen &pen)
void addItem(QGraphicsItem *item)
qreal height() const const
qreal width() const const
QPointF p1() const const
QPointF p2() const const
virtual bool event(QEvent *e)
QObject * parent() const const
T qobject_cast(QObject *object)
Antialiasing
void drawLine(const QLine &line)
void fillRect(const QRect &rectangle, QGradient::Preset preset)
const QPen & pen() const const
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
qreal x() const const
qreal y() const const
SizeAllCursor
black
PenStyle
int toInt(bool *ok) const const
QString toString() const const
T value() 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.