#include <VertexItemSimple.hpp>
Simplest possible implementation of a VertexItemBase just a box with two strings – type and label
◆ VertexItemSimple() [1/2]
| graph_analysis::gui::VertexItemSimple::VertexItemSimple |
( |
| ) |
|
|
protected |
◆ VertexItemSimple() [2/2]
kiss: very simple base implementation of a rectangle
◆ ~VertexItemSimple()
| graph_analysis::gui::VertexItemSimple::~VertexItemSimple |
( |
| ) |
|
|
virtual |
◆ createNewItem()
◆ dragEnterEvent()
| void graph_analysis::gui::VertexItemSimple::dragEnterEvent |
( |
QGraphicsSceneDragDropEvent * |
event | ) |
|
|
protected |
all items by default accept drag-n-drop events. override this function in later classes to prevent certain drops?
◆ dragLeaveEvent()
| void graph_analysis::gui::VertexItemSimple::dragLeaveEvent |
( |
QGraphicsSceneDragDropEvent * |
event | ) |
|
|
protected |
◆ dropEvent()
| void graph_analysis::gui::VertexItemSimple::dropEvent |
( |
QGraphicsSceneDragDropEvent * |
event | ) |
|
|
protected |
◆ hoverEnterEvent()
| void graph_analysis::gui::VertexItemSimple::hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
protectedvirtual |
this is used to update the statusbar of the current active widget with information about the currently hovered (or not hovered) vertex
Reimplemented from graph_analysis::gui::VertexItemBase.
◆ hoverLeaveEvent()
| void graph_analysis::gui::VertexItemSimple::hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
protectedvirtual |
◆ itemChange()
| QVariant graph_analysis::gui::VertexItemSimple::itemChange |
( |
GraphicsItemChange |
change, |
|
|
const QVariant & |
value |
|
) |
| |
|
virtual |
uses this (read only) notification to update the label showing current canvas coordinate of the whole item. nice for debugging.
Reimplemented from graph_analysis::gui::VertexItemBase.
◆ mouseDoubleClickEvent()
| void graph_analysis::gui::VertexItemSimple::mouseDoubleClickEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
protected |
◆ setDebug()
| void graph_analysis::gui::VertexItemSimple::setDebug |
( |
bool |
debug | ) |
|
|
inline |
Set whether the diplay should show the item position or not
◆ type()
| virtual int graph_analysis::gui::VertexItemSimple::type |
( |
| ) |
const |
|
inlinevirtual |
◆ VertexItemTypeManager
The documentation for this class was generated from the following files: