Merge ITextMark and BaseTextMark

Turns out we don't even need two-phase initialization,
by transparently postponing registration until we get
a non-empty file name, either at constuction, or at
file name change times.

Change-Id: I3e87e47c820066e6707e946fc474ab9c1993e61f
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
hjk
2014-07-19 11:27:28 +02:00
parent 53bfd5285d
commit cf8a614419
32 changed files with 265 additions and 372 deletions

View File

@@ -44,9 +44,9 @@ using namespace Valgrind::Callgrind;
CallgrindTextMark::CallgrindTextMark(const QPersistentModelIndex &index,
const QString &fileName, int lineNumber)
: TextEditor::BaseTextMark(fileName, lineNumber), m_modelIndex(index)
: TextEditor::TextMark(fileName, lineNumber), m_modelIndex(index)
{
setPriority(TextEditor::ITextMark::HighPriority);
setPriority(TextEditor::TextMark::HighPriority);
setWidthFactor(4.0);
}