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
@@ -116,7 +116,7 @@ public:
|
||||
|
||||
DisassemblerAgentPrivate::DisassemblerAgentPrivate()
|
||||
: document(0),
|
||||
locationMark(QString(), 0),
|
||||
locationMark(QString(), 0, Constants::TEXT_MARK_CATEGORY_LOCATION),
|
||||
mimeType(_("text/x-qtcreator-generic-asm")),
|
||||
resetLocationScheduled(false)
|
||||
{
|
||||
@@ -352,7 +352,8 @@ void DisassemblerAgent::updateBreakpointMarkers()
|
||||
const int lineNumber = contents.lineForAddress(address);
|
||||
if (!lineNumber)
|
||||
continue;
|
||||
TextMark *marker = new TextMark(QString(), lineNumber);
|
||||
TextMark *marker = new TextMark(QString(), lineNumber,
|
||||
Constants::TEXT_MARK_CATEGORY_BREAKPOINT);
|
||||
marker->setIcon(bp.icon());
|
||||
marker->setPriority(TextMark::NormalPriority);
|
||||
d->breakpointMarks.append(marker);
|
||||
|
||||
Reference in New Issue
Block a user