Bazaar: fix code folding markers in the diff view

The top-level marker is now centered on the line starting with '==='

Merge-request: 274
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
cerf
2011-03-14 19:32:42 +01:00
committed by Tobias Hunger
parent 6971466eaa
commit 9494352abf
3 changed files with 4 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ using namespace Bazaar;
BazaarEditor::BazaarEditor(const VCSBase::VCSBaseEditorParameters *type, QWidget *parent)
: VCSBase::VCSBaseEditorWidget(type, parent),
m_exactChangesetId(QLatin1String(Constants::CHANGESET_ID_EXACT)),
m_diffIdentifier(QLatin1String(Constants::DIFFIDENTIFIER))
m_diffFileId(QLatin1String("^(=== modified file '.*'$)"))
{
setAnnotateRevisionTextFormat(tr("Annotate %1"));
setAnnotatePreviousRevisionTextFormat(tr("Annotate parent revision %1"));
@@ -99,7 +99,7 @@ QString BazaarEditor::changeUnderCursor(const QTextCursor &cursorIn) const
VCSBase::DiffHighlighter *BazaarEditor::createDiffHighlighter() const
{
return new VCSBase::DiffHighlighter(m_diffIdentifier);
return new VCSBase::DiffHighlighter(m_diffFileId);
}
VCSBase::BaseAnnotationHighlighter *BazaarEditor::createAnnotationHighlighter(const QSet<QString> &changes) const