A view for the graph scene. More...
#include <GraphView.hh>
Inherits QGraphicsView.
Signals | |
| void | customContextMenuRequested (QString _id) |
| Qt signal emitted when a context menu event is triggered. More... | |
| void | itemDoubleClicked (QString _id) |
| Qt signal emitted when an item is double clicked. More... | |
Public Member Functions | |
| GraphView (QWidget *_parent=0) | |
| Constructor. More... | |
| virtual | ~GraphView ()=default |
| Destructor. More... | |
Public Attributes | |
| QGraphicsItem * | lastClickedItem = nullptr |
| Store which item was clicked last. More... | |
A view for the graph scene.
|
explicit |
Constructor.
| [in] | _parent | Parent Widget. |
|
virtualdefault |
Destructor.
|
signal |
Qt signal emitted when a context menu event is triggered.
| [in] | _id | Unique id of an item. |
|
signal |
Qt signal emitted when an item is double clicked.
| [in] | _id | Unique id of an item. |
| QGraphicsItem* lastClickedItem = nullptr |
Store which item was clicked last.