logic: Fixed scrolling to line from plug-in and moved all code view scrolling into QtCodeNavigator

This commit is contained in:
Eberhard Graether
2016-08-10 16:16:32 +02:00
parent 2800c072ff
commit 6b51c7cfe4
15 changed files with 190 additions and 183 deletions
+4 -3
View File
@@ -172,8 +172,6 @@ std::string QtCodeSnippet::getCode() const
void QtCodeSnippet::clickedTitle()
{
getFile()->setScrollToLine(getStartLineNumber());
if (m_titleId > 0)
{
MessageShowScope(m_titleId, m_navigator->hasErrors()).dispatch();
@@ -182,14 +180,17 @@ void QtCodeSnippet::clickedTitle()
{
getFile()->clickedMaximizeButton();
}
m_navigator->requestScrollToLine(getFile(), getStartLineNumber());
}
void QtCodeSnippet::clickedFooter()
{
if (m_footerId > 0)
{
getFile()->setScrollToLine(getEndLineNumber());
MessageShowScope(m_footerId, m_navigator->hasErrors()).dispatch();
m_navigator->requestScrollToLine(getFile(), getEndLineNumber());
}
}