logic: Return to last scroll position in code view on undo

* fixed scrolling on undo
* refactored autoscrolling in code view
* save scroll position of user with MessageScrollCode
This commit is contained in:
Eberhard Graether
2016-01-29 13:08:30 +01:00
parent 427c94457b
commit ead0abfba2
20 changed files with 240 additions and 91 deletions
+5
View File
@@ -110,6 +110,11 @@ QtCodeSnippet::~QtCodeSnippet()
{
}
QtCodeFile* QtCodeSnippet::getFile() const
{
return m_codeArea->getFile();
}
uint QtCodeSnippet::getStartLineNumber() const
{
return m_codeArea->getStartLineNumber();