ui: Show definition in code view when clicking active node in graph

This commit is contained in:
Eberhard Graether
2017-02-21 00:37:19 +01:00
parent 4a230b1d94
commit 77ef076c88
10 changed files with 31 additions and 10 deletions
+2 -2
View File
@@ -165,12 +165,12 @@ void QtCodeView::scrollToLine(const FilePath filePath, unsigned int line)
);
}
void QtCodeView::scrollToDefinition()
void QtCodeView::scrollToDefinition(bool ignoreActiveReference)
{
m_onQtThread(
[=]()
{
m_widget->scrollToDefinition();
m_widget->scrollToDefinition(ignoreActiveReference);
}
);
}
+1 -1
View File
@@ -50,7 +50,7 @@ public:
virtual void scrollToValue(int value, bool inListMode);
virtual void scrollToLine(const FilePath filePath, unsigned int line);
virtual void scrollToDefinition();
virtual void scrollToDefinition(bool ignoreActiveReference);
private:
void doShowCodeSnippets(
+1 -1
View File
@@ -153,7 +153,7 @@ void QtGraphView::clickedInEmptySpace()
if (activeEdgeCount == 1)
{
MessageDeactivateEdge().dispatch();
MessageDeactivateEdge(false).dispatch();
}
}
@@ -81,7 +81,7 @@ void QtGraphNodeData::onClick()
{
if (m_isActive && !m_multipleActive)
{
MessageDeactivateEdge().dispatch();
MessageDeactivateEdge(true).dispatch();
return;
}