ui: added context menu option to copy a graph-node's name

This commit is contained in:
malte_langkabel
2017-01-19 12:01:08 +01:00
parent 0cdddb616d
commit 212c0e71fa
3 changed files with 60 additions and 9 deletions
+3 -8
View File
@@ -171,15 +171,10 @@ void QtGraphView::switchToNewGraphData()
// Manually hover the item below the mouse cursor.
QtGraphicsView* view = getView();
QPointF point = view->mapToScene(view->mapFromGlobal(QCursor::pos()));
QGraphicsItem* item = view->scene()->itemAt(point, QTransform());
if (item)
QtGraphNode* node = view->getNodeAtCursorPosition();
if (node)
{
QtGraphNode* node = dynamic_cast<QtGraphNode*>(item->parentItem());
if (node)
{
node->hoverEnter();
}
node->hoverEnter();
}
if (m_activeNode)