Changeset View
Changeset View
Standalone View
Standalone View
src/utils/ktexteditor.cpp
Show All 36 Lines | |||||
37 | #include "inlinenotedata.h" | 37 | #include "inlinenotedata.h" | ||
38 | #include "inlinenoteprovider.h" | 38 | #include "inlinenoteprovider.h" | ||
39 | #include "markinterface.h" | 39 | #include "markinterface.h" | ||
40 | #include "modificationinterface.h" | 40 | #include "modificationinterface.h" | ||
41 | #include "sessionconfiginterface.h" | 41 | #include "sessionconfiginterface.h" | ||
42 | #include "texthintinterface.h" | 42 | #include "texthintinterface.h" | ||
43 | 43 | | |||
44 | #include "annotationinterface.h" | 44 | #include "annotationinterface.h" | ||
45 | #include "abstractannotationitemdelegate.h" | ||||
45 | 46 | | |||
46 | #include "kateglobal.h" | 47 | #include "kateglobal.h" | ||
47 | #include "kateconfig.h" | 48 | #include "kateconfig.h" | ||
48 | #include "katecmd.h" | 49 | #include "katecmd.h" | ||
49 | 50 | | |||
50 | using namespace KTextEditor; | 51 | using namespace KTextEditor; | ||
51 | 52 | | |||
52 | Cursor Cursor::fromString(const QStringRef& str) Q_DECL_NOEXCEPT | 53 | Cursor Cursor::fromString(const QStringRef& str) Q_DECL_NOEXCEPT | ||
▲ Show 20 Lines • Show All 317 Lines • ▼ Show 20 Line(s) | |||||
370 | { | 371 | { | ||
371 | return d->lastDisplayedLineInternal(lineType); | 372 | return d->lastDisplayedLineInternal(lineType); | ||
372 | } | 373 | } | ||
373 | 374 | | |||
374 | QRect View::textAreaRect() const | 375 | QRect View::textAreaRect() const | ||
375 | { | 376 | { | ||
376 | return d->textAreaRectInternal(); | 377 | return d->textAreaRectInternal(); | ||
377 | } | 378 | } | ||
379 | | ||||
380 | StyleOptionAnnotationItem::StyleOptionAnnotationItem() | ||||
381 | : contentFontMetrics(QFont()) | ||||
382 | {} | ||||
383 | | ||||
384 | StyleOptionAnnotationItem::StyleOptionAnnotationItem(const StyleOptionAnnotationItem &other) | ||||
385 | : QStyleOption(Version, Type) | ||||
386 | , contentFontMetrics(QFont()) | ||||
387 | { | ||||
388 | *this = other; | ||||
389 | } | ||||
390 | | ||||
391 | StyleOptionAnnotationItem::StyleOptionAnnotationItem(int version) | ||||
392 | : QStyleOption(version, Type) | ||||
393 | , contentFontMetrics(QFont()) | ||||
394 | {} | ||||
395 | | ||||
396 | AbstractAnnotationItemDelegate::AbstractAnnotationItemDelegate(QObject *parent) | ||||
397 | : QObject(parent) | ||||
398 | {} | ||||
399 | | ||||
400 | AbstractAnnotationItemDelegate::~AbstractAnnotationItemDelegate() = default; |