forked from qt-creator/qt-creator
TextEditor: Sort text marks in categories.
Also adding a color for each category. Change-Id: I3627d13913951a95804b5a816f087a822c01bd86 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
a6e1c3cb54
commit
ab2a0d74de
@@ -43,9 +43,12 @@
|
||||
using namespace Valgrind::Internal;
|
||||
using namespace Valgrind::Callgrind;
|
||||
|
||||
namespace Constants { const char CALLGRIND_TEXT_MARK_CATEGORY[] = "Callgrind.Textmark"; }
|
||||
|
||||
CallgrindTextMark::CallgrindTextMark(const QPersistentModelIndex &index,
|
||||
const QString &fileName, int lineNumber)
|
||||
: TextEditor::TextMark(fileName, lineNumber), m_modelIndex(index)
|
||||
: TextEditor::TextMark(fileName, lineNumber, Constants::CALLGRIND_TEXT_MARK_CATEGORY)
|
||||
, m_modelIndex(index)
|
||||
{
|
||||
setPriority(TextEditor::TextMark::HighPriority);
|
||||
setWidthFactor(4.0);
|
||||
|
||||
Reference in New Issue
Block a user