EditorManager: add GotoLastEdit action

Done-with: Guillem Miguel <guillemmr@hotmail.com>
Done-with: Andre Hartmann <aha_1980@gmx.de>
Change-Id: I5059ea4ba8e9aa115cf4d0a90b80a4606779039a
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Volodymyr Samokhatko
2017-04-01 18:50:10 +02:00
committed by André Hartmann
parent 889f0f4cec
commit 264185245d
7 changed files with 60 additions and 0 deletions

View File

@@ -5270,6 +5270,8 @@ void TextEditorWidget::slotCursorPositionChanged()
d->m_lastCursorChangeWasInteresting = false;
} else if (d->m_contentsChanged) {
d->saveCurrentCursorPositionForNavigation();
if (EditorManager::currentEditor() && EditorManager::currentEditor()->widget() == this)
EditorManager::setLastEditLocation(EditorManager::currentEditor());
}
d->updateHighlights();