rocs/VisualEditor
PointerItem.cpp
Go to the documentation of this file.
111 connect(pointer.get(), SIGNAL(directionChanged(PointerType::Direction)), this, SLOT(updateAttributes()));
152 QLine q(d->_pointer->from()->x(), d->_pointer->from()->y(), d->_pointer->to()->x(), d->_pointer->to()->y());
166 setPen(QPen(QBrush(QColor(d->_pointer->color())), d->_pointer->width(), style, Qt::RoundCap, Qt::RoundJoin));
178 PointerTypePtr pointerType = d->_pointer->dataStructure()->document()->pointerType(d->_pointer->pointerType());
204 PointerTypePtr pointerType = d->_pointer->dataStructure()->document()->pointerType(d->_pointer->pointerType());
205 d->_propertyValues.insert(name, new QGraphicsSimpleTextItem(d->_pointer->property(name.toLatin1()).toString()));
221 PointerTypePtr pointerType = d->_pointer->dataStructure()->document()->pointerType(d->_pointer->pointerType());
256 void PointerItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
void setFlag(GraphicsItemFlag flag, bool enabled)
qreal x() const
qreal y() const
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
when there's a mouse release on the element, this method is invoked
Definition: PointerItem.cpp:135
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
PointerItem(PointerPtr pointer, QGraphicsItem *parent=0)
Default constructor.
Definition: PointerItem.cpp:97
void hide()
QGraphicsScene * scene() const
void update(const QRectF &rect)
const char * name() const
qreal zValue() const
qreal x() const
qreal y() const
QVariant property(const char *name) const
void removeItem(QGraphicsItem *item)
void setPen(const QColor &color)
bool isSelected() const
void registerProperty(const QString &name)
Definition: PointerItem.cpp:199
virtual QPainterPath createCurves()=0
virtual QRectF boundingRect() const
void deleteLater()
QPointF pointAtPercent(qreal t) const
QByteArray toLatin1() const
qreal width() const
void setPen(const QPen &pen)
QGraphicsItem * propertyListItem() const
Definition: PointerItem.cpp:247
void setPath(const QPainterPath &path)
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: PointerItem.cpp:256
qreal height() const
void show()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QPainterPath path() const
void setZValue(qreal z)
void mousePressEvent(QGraphicsSceneMouseEvent *event)
when there's a mouse click on the element, this method is invoked
Definition: PointerItem.cpp:131
Definition: PointerItem.h:63
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.