VCS: Refactor createDiffHighlighter

All plugins do the same...

Change-Id: I21e5a1d7507292add91199a3db75df74165b63b1
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-01-17 22:08:29 +02:00
committed by Orgad Shaneh
parent 6dd8726a16
commit 725ecc5f91
18 changed files with 27 additions and 39 deletions

View File

@@ -106,12 +106,9 @@ QString SubversionEditor::changeUnderCursor(const QTextCursor &c) const
@@ -6,6 +6,5 @@
\endcode
*/
VcsBase::DiffHighlighter *SubversionEditor::createDiffHighlighter() const
QRegExp SubversionEditor::diffFilePattern() const
{
const QRegExp filePattern(QLatin1String("^[-+][-+][-+] .*|^Index: .*|^==*$"));
QTC_CHECK(filePattern.isValid());
return new VcsBase::DiffHighlighter(filePattern);
return QRegExp(QLatin1String("^[-+][-+][-+] .*|^Index: .*|^==*$"));
}
VcsBase::BaseAnnotationHighlighter *SubversionEditor::createAnnotationHighlighter(const QSet<QString> &changes,