logic: scroll code when no symbol

Scrolling to line, when comming from plugin and the file is was modified.
Since there we dont know from the position data if the symbol on position is the right one,
we scroll to the line if modified.
This commit is contained in:
Andreas Stallinger
2016-07-28 14:16:15 +02:00
parent acaf58c3f8
commit d5e9cecef3
16 changed files with 139 additions and 22 deletions
+5
View File
@@ -264,6 +264,11 @@ QtCodeSnippet* QtCodeFile::insertCodeSnippet(const CodeSnippetParams& params)
return snippet.get();
}
QtCodeSnippet* QtCodeFile::getFileSnippet() const
{
return m_fileSnippet.get();
}
QtCodeSnippet* QtCodeFile::findFirstActiveSnippet() const
{
if (m_locationFile)