logic: Scroll active definition to top of code view is possible

* don't log hande message
* fixed graph gets animated when using next and previous code reference shortcuts
* fixed message scroll code handling
This commit is contained in:
Eberhard Graether
2016-12-07 14:18:24 +01:00
parent 5d5a0922f5
commit 2d9052992c
20 changed files with 181 additions and 46 deletions
+21
View File
@@ -127,3 +127,24 @@ QtCodeFile* QtCodeFileList::getFile(const FilePath filePath)
return file;
}
std::pair<QtCodeSnippet*, int> QtCodeFileList::getFirstSnippetWithActiveScope() const
{
std::pair<QtCodeSnippet*, int> result(nullptr, 0);
for (std::shared_ptr<QtCodeFile> filePtr : m_files)
{
if (filePtr->isCollapsed())
{
continue;
}
result = filePtr->getFirstSnippetWithActiveScope();
if (result.first != nullptr)
{
break;
}
}
return result;
}