Git: Scroll to active file on Show invoked from file log

Change-Id: I0935bf8b8b30ee78716a14ee0a88c21b9caf62dc
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-08-20 16:45:30 +03:00
committed by Orgad Shaneh
parent f735c8da45
commit d8d7acbe75
6 changed files with 99 additions and 71 deletions

View File

@@ -100,9 +100,10 @@ DiffEditorController *DiffEditorController::controller(Core::IDocument *document
}
void DiffEditorController::setDiffFiles(const QList<FileData> &diffFileList,
const QString &workingDirectory)
const QString &workingDirectory,
const QString &startupFile)
{
m_document->setDiffFiles(diffFileList, workingDirectory);
m_document->setDiffFiles(diffFileList, workingDirectory, startupFile);
}
void DiffEditorController::setDescription(const QString &description)
@@ -169,6 +170,11 @@ void DiffEditorController::forceContextLineCount(int lines)
m_document->forceContextLineCount(lines);
}
Core::IDocument *DiffEditorController::document() const
{
return m_document;
}
/**
* @brief Request the diff data to be re-read.
*/