KReport
KReportDesignerSectionScene.cpp
86 //kreportDebug() << "dpix" << KReportPrivate::dpiX() << "dpiy" << KReportPrivate::dpiY() << "mayorx:" << majorx << "majory" << majory << "pix:" << pixel_incrementx << "piy:" << pixel_incrementy;
98 lines << QLine(QPoint(i * m_pixelIncrementX, j * m_pixelIncrementY), QPoint(i * m_pixelIncrementX, j * m_pixelIncrementY + m_majorX));
100 lines << QLine(QPoint(i * m_pixelIncrementX, j * m_pixelIncrementY), QPoint(i * m_pixelIncrementX + m_majorY, j * m_pixelIncrementY));
124 (!(selectedItems().contains(itemAt(e->scenePos(), QTransform()))) && e->button() == Qt::RightButton))
127 //This will be caught by the section to display its properties, if an item is under the cursor then they will display their properties
131 KReportDesignerItemRectBase *rectUnderCursor = qgraphicsitem_cast< KReportDesignerItemRectBase* >(itemUnderCursor);
133 rectUnderCursor = qgraphicsitem_cast< KReportDesignerItemRectBase* >(itemUnderCursor->parentItem());
170 return QPointF(qRound((p.x() / m_pixelIncrementX)) * m_pixelIncrementX, qRound((p.y() / m_pixelIncrementY)) * m_pixelIncrementY);
243void KReportDesignerSectionScene::exitInlineEditingModeInItems(KReportDesignerItemRectBase *rectUnderCursor)
KProperty & property(const QByteArray &name) const
QVariant value() const
Base class for rectangular report items used within the designer GUI.
Definition KReportDesignerItemRectBase.h:39
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
void sectionContextMenuEvent(KReportDesignerSectionScene *scene, QGraphicsSceneContextMenuEvent *event)
Handle the context menu event for a report section.
Definition KReportDesigner.cpp:1058
qreal fromUserValue(qreal value) const
Equal to convertToPoint(), use convertToPoint() instead for clarity.
Definition KReportUnit.h:271
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QGraphicsItem * parentItem() const const
void clearSelection()
virtual void drawBackground(QPainter *painter, const QRectF &rect)
virtual void focusOutEvent(QFocusEvent *focusEvent)
qreal height() const const
QGraphicsItem * itemAt(const QPointF &position, const QTransform &deviceTransform) const const
QList< QGraphicsItem * > items(Qt::SortOrder order) const const
virtual void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent)
sceneRect
QList< QGraphicsItem * > selectedItems() const const
qreal width() const const
Qt::MouseButton button() const const
Qt::KeyboardModifiers modifiers() const const
QPointF scenePos() const const
iterator begin()
iterator end()
Antialiasing
void drawLines(const QLine *lines, int lineCount)
void drawPoints(const QPoint *points, int pointCount)
const QPen & pen() const const
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
void setWidth(int width)
qreal x() const const
qreal y() const const
lightGray
ShiftModifier
LeftButton
bool toBool() const const
int toInt(bool *ok) 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.