TextEditor: Add line annotations

Displaying short descriptive text of a TextMark at line end.
Currently implemented for ClangTextMark and BookMark.

Change-Id: Idc6b579bda0382ad94b2e236b715696396b10460
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
David Schulz
2017-06-20 08:28:10 +02:00
parent 4506acbffc
commit 6591a01452
17 changed files with 275 additions and 56 deletions

View File

@@ -44,7 +44,7 @@ void QmlProfilerTextMark::addTypeId(int typeId)
m_typeIds.append(typeId);
}
void QmlProfilerTextMark::paint(QPainter *painter, const QRect &paintRect) const
void QmlProfilerTextMark::paintIcon(QPainter *painter, const QRect &paintRect) const
{
painter->save();
painter->setPen(Qt::black);
@@ -108,7 +108,7 @@ void QmlProfilerTextMarkModel::createMarks(QmlProfilerTool *tool, const QString
}
}
bool QmlProfilerTextMark::addToolTipContent(QLayout *target)
bool QmlProfilerTextMark::addToolTipContent(QLayout *target) const
{
QGridLayout *layout = new QGridLayout;
layout->setHorizontalSpacing(10);