KTextEditor
kateannotationitemdelegate.cpp
54 // Draw a border around all adjacent entries that have the same text as the currently hovered one
55 if ((option.state & QStyle::State_MouseOver) && (option.annotationItemGroupingPosition & KTextEditor::StyleOptionAnnotationItem::InGroup)) {
64 if ((option.annotationItemGroupingPosition & KTextEditor::StyleOptionAnnotationItem::GroupBegin) && (option.wrappedLine == 0)) {
127QSize KateAnnotationItemDelegate::sizeHint(const KTextEditor::StyleOptionAnnotationItem &option, KTextEditor::AnnotationModel *model, int line) const
An model for providing line annotation information.
Definition annotationinterface.h:42
virtual QVariant data(int line, Qt::ItemDataRole role) const =0
data() is used to retrieve the information needed to present the annotation information from the anno...
The style option set for an annotation item, as painted by AbstractAnnotationItemDelegate.
Definition abstractannotationitemdelegate.h:30
@ GroupBegin
Real line is first of consecutive lines from same group.
Definition abstractannotationitemdelegate.h:80
@ GroupEnd
Real line is last of consecutive lines from same group.
Definition abstractannotationitemdelegate.h:81
AnnotationItemGroupPositions annotationItemGroupingPosition
Relative position of the real line in the row of consecutive displayed lines which belong to the same...
Definition abstractannotationitemdelegate.h:90
QFontMetricsF contentFontMetrics
The metrics of the font used for rendering the text document.
Definition abstractannotationitemdelegate.h:70
int wrappedLineCount
Number of wrapped lines for the given real line.
Definition abstractannotationitemdelegate.h:49
int wrappedLine
Index of the displayed line in the wrapped lines for the given real line.
Definition abstractannotationitemdelegate.h:43
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
ToolTip
qreal height() const const
qreal horizontalAdvance(QChar ch) const const
virtual bool event(QEvent *e)
void drawLine(const QLine &line)
void drawText(const QPoint &position, const QString &text)
void fillRect(const QRect &rectangle, QGradient::Preset preset)
const QPen & pen() const const
void restore()
void save()
void setPen(Qt::PenStyle style)
void setWidth(int width)
bool isEmpty() const const
qsizetype length() const const
State_MouseOver
AlignLeft
BackgroundRole
void hideText()
void showText(const QPoint &pos, const QString &text, QWidget *w, const QRect &rect, int msecDisplayTime)
bool canConvert() const const
bool isValid() const const
QString toString() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.