VCS: Highlight log with diff

Change-Id: I46abd51e5764571138c54df81cc3adbeadb26840
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-01-22 14:50:22 +02:00
committed by Orgad Shaneh
parent 8d9710c074
commit 64018aed8a
2 changed files with 36 additions and 20 deletions

View File

@@ -257,6 +257,11 @@ protected:
virtual bool isValidRevision(const QString &revision) const;
private:
// Indicates if the editor has diff contents. If true, an appropriate
// highlighter is used and double-click inside a diff chunk jumps to
// the relevant file and line
bool hasDiff() const;
// cut out chunk and determine file name.
DiffChunk diffChunk(QTextCursor cursor) const;