GraphView Class Reference

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...
 

Detailed Description

A view for the graph scene.

Constructor & Destructor Documentation

§ GraphView()

GraphView ( QWidget *  _parent = 0)

Constructor.

Parameters
[in]_parentParent Widget.

§ ~GraphView()

virtual ~GraphView ( )
virtualdefault

Destructor.

Member Function Documentation

§ customContextMenuRequested

void customContextMenuRequested ( QString  _id)
signal

Qt signal emitted when a context menu event is triggered.

Parameters
[in]_idUnique id of an item.

§ itemDoubleClicked

void itemDoubleClicked ( QString  _id)
signal

Qt signal emitted when an item is double clicked.

Parameters
[in]_idUnique id of an item.

Member Data Documentation

§ lastClickedItem

QGraphicsItem* lastClickedItem = nullptr

Store which item was clicked last.


The documentation for this class was generated from the following file: