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
+8 -1
View File
@@ -532,8 +532,15 @@ void QtCodeNavigator::scrollToLine(const FilePath& filePath, unsigned int line)
requestScroll(filePath, line, 0, false, false);
}
void QtCodeNavigator::scrollToDefinition()
void QtCodeNavigator::scrollToDefinition(bool ignoreActiveReference)
{
if (ignoreActiveReference)
{
m_activeReference = Reference();
m_refIndex = 0;
updateRefLabel();
}
if (m_activeReference.tokenId)
{
if (m_mode == MODE_LIST)