Commit 2a5d8834 authored by hjk's avatar hjk

texteditor: handle higher prioritized markers first

Change-Id: Id526f7544db89fae9c15afa0605ab9b0ecdcaf8e
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 3621e3e3
......@@ -4474,7 +4474,9 @@ void BaseTextEditorWidget::extraAreaMouseEvent(QMouseEvent *e)
d->m_markDragging = false;
QTextBlock block = cursor.document()->findBlockByNumber(n);
if (TextBlockUserData *data = static_cast<TextBlockUserData *>(block.userData())) {
foreach (ITextMark *mark, data->marks()) {
TextMarks marks = data->marks();
for (int i = marks.size(); --i >= 0; ) {
ITextMark *mark = marks.at(i);
if (sameLine) {
if (mark->isClickable()) {
mark->clicked();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment