forked from qt-creator/qt-creator
texteditor: give priorities to mark to ensure z-order when drawing
This commit is contained in:
@@ -78,6 +78,8 @@ public:
|
||||
void updateBlock(const QTextBlock & /*block*/) {}
|
||||
void removedFromEditor() {}
|
||||
void documentClosing() {}
|
||||
TextEditor::ITextMark::Priority priority() const
|
||||
{ return TextEditor::ITextMark::HighPriority; }
|
||||
};
|
||||
|
||||
class BreakpointMarker2 : public TextEditor::ITextMark
|
||||
@@ -90,6 +92,8 @@ public:
|
||||
void updateBlock(const QTextBlock &) {}
|
||||
void removedFromEditor() {}
|
||||
void documentClosing() {}
|
||||
TextEditor::ITextMark::Priority priority() const
|
||||
{ return TextEditor::ITextMark::NormalPriority; }
|
||||
|
||||
private:
|
||||
QIcon m_icon;
|
||||
|
||||
Reference in New Issue
Block a user