Go to the documentation of this file.
26 #include <QGraphicsObject>
27 #include <QLinearGradient>
35 public QGraphicsObject,
41 QGraphicsItem* parent = 0);
49 void setSize(
const QSizeF& newSize);
50 void paint(QPainter* painter,
const QStyleOptionGraphicsItem*
option, QWidget* widget = 0)
override;
54 QVariant
itemChange(QGraphicsItem::GraphicsItemChange change,
const QVariant&
value)
override;
61 QLinearGradient fillGradient;
86 virtual bool itemResizing(
const QRectF& oldSize, QRectF& proposedSize)
90 virtual void itemResized(
const QRectF& oldSize,
const QRectF& newSize) {}
91 virtual void itemMoved(
const QPointF& oldPos,
const QPointF& newPos) {}
bool isLevelOfDetailLow(QGraphicsSceneEvent *event) const
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
QRectF boundingRect() const override
void adjustCursor(Qt::CursorShape shape)
void setEditable(bool editable)
RoundRectItem(const QRectF &bounds, const QColor &color, QGraphicsItem *parent=0)
QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant &value) override
void hoverMoveEvent(QGraphicsSceneHoverEvent *event) override
void setBounds(QRectF newBounds)
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override
QRectF getLeftResizeBB() const
virtual void itemResized(const QRectF &oldSize, const QRectF &newSize)
void setRimPen(QPen newPen)
void adjustScale(float &resultScalefactor)
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) override
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
QRectF getRightResizeBB() const
std::shared_ptr< Value > value()
QRectF getTopResizeBB() const
virtual QPointF adjustPosition(QPointF &newPos)
virtual void itemMoved(const QPointF &oldPos, const QPointF &newPos)
void setColor(QColor newColor)
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override
virtual void itemBoundingBoxChanged(float oldSize, float size)
QRectF getBottomResizeBB() const
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
Base Class for all Logging classes.
virtual bool itemResizing(const QRectF &oldSize, QRectF &proposedSize)
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
void setSize(const QSizeF &newSize)