texteditor: give priorities to mark to ensure z-order when drawing

This commit is contained in:
hjk
2011-03-02 18:43:26 +01:00
parent 4a179b7c73
commit 1b1896b38b
10 changed files with 40 additions and 6 deletions

View File

@@ -67,6 +67,16 @@ public:
virtual void updateBlock(const QTextBlock &block) = 0;
virtual void removedFromEditor() = 0;
virtual void documentClosing() = 0;
// determine order on markers on the same line.
enum Priority
{
LowPriority,
NormalPriority,
HighPriority // shown on top.
};
virtual Priority priority() const = 0;
};
typedef QList<ITextMark *> TextMarks;