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)
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
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:26 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:26 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.