diff options
author | David Schulz <david.schulz@theqtcompany.com> | 2015-04-17 12:46:28 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-05-21 08:23:16 +0000 |
commit | ab2a0d74dec2df08d23e14b5b3ad670d98af435f (patch) | |
tree | 02b161b155335a5cfd498fdd2052e86b7c490964 /src/plugins/valgrind/callgrindtextmark.cpp | |
parent | a6e1c3cb54dcf419aa3b86ecd24865198906e313 (diff) |
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>
Diffstat (limited to 'src/plugins/valgrind/callgrindtextmark.cpp')
-rw-r--r-- | src/plugins/valgrind/callgrindtextmark.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/valgrind/callgrindtextmark.cpp b/src/plugins/valgrind/callgrindtextmark.cpp index 064025268e..058871047d 100644 --- a/src/plugins/valgrind/callgrindtextmark.cpp +++ b/src/plugins/valgrind/callgrindtextmark.cpp @@ -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); |