Scene movement widget.
More...
#include <Plugin-VSI/scene/arrow.hh>
|
enum | Direction {
North
, South
, East
, West
,
Center
} |
| Movement direction. More...
|
|
|
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *_event) |
|
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *_event) |
|
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *_event) |
|
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *_event) |
|
virtual void | wheelEvent (QGraphicsSceneWheelEvent *_event) |
|
virtual QSizeF | sizeHint (Qt::SizeHint _which, const QSizeF &_constraint=QSizeF()) const |
|
Scene movement widget.
Definition at line 62 of file arrow.hh.
◆ Direction
Movement direction.
Definition at line 70 of file arrow.hh.
◆ Arrow()
Constructor.
Definition at line 66 of file arrow.cc.
◆ ~Arrow()
◆ activate()
void VSI::Arrow::activate |
( |
| ) |
|
Activates the timer for movement (will be called if an element is moved above)
Definition at line 239 of file arrow.cc.
◆ hoverEnterEvent()
void VSI::Arrow::hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
_event | ) |
|
|
protectedvirtual |
◆ hoverLeaveEvent()
void VSI::Arrow::hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
_event | ) |
|
|
protectedvirtual |
◆ mousePressEvent()
void VSI::Arrow::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
_event | ) |
|
|
protectedvirtual |
◆ mouseReleaseEvent()
void VSI::Arrow::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
_event | ) |
|
|
protectedvirtual |
◆ reset()
void VSI::Arrow::reset |
( |
void |
| ) |
|
Stop the timer.
Definition at line 250 of file arrow.cc.
◆ setGeometry()
void VSI::Arrow::setGeometry |
( |
const QRectF & |
_rect | ) |
|
|
virtual |
Sets the geometry.
Definition at line 259 of file arrow.cc.
◆ setHighlight()
void VSI::Arrow::setHighlight |
( |
bool |
_highlight | ) |
|
Highlights the widget if the scene can be moved in this direction.
Definition at line 287 of file arrow.cc.
◆ sizeHint()
QSizeF VSI::Arrow::sizeHint |
( |
Qt::SizeHint |
_which, |
|
|
const QSizeF & |
_constraint = QSizeF() |
|
) |
| const |
|
protectedvirtual |
◆ timeout
void VSI::Arrow::timeout |
( |
| ) |
|
|
privateslot |
◆ wheelEvent()
void VSI::Arrow::wheelEvent |
( |
QGraphicsSceneWheelEvent * |
_event | ) |
|
|
protectedvirtual |
◆ dir_
◆ highlight_
bool VSI::Arrow::highlight_ |
|
private |
◆ interval_
int VSI::Arrow::interval_ |
|
private |
◆ moveSelected_
bool VSI::Arrow::moveSelected_ |
|
private |
◆ scene_
◆ timer_
QTimer VSI::Arrow::timer_ |
|
private |
The documentation for this class was generated from the following files: