Extending Qt Creator Manual | TextMark

Extending Qt Creator Manual 4.3.0

# TextMark Class

(TextEditor::TextMark)

- List of all members, including inherited members

## Public Types

enum | Priority { LowPriority, NormalPriority, HighPriority }

## Public Functions

| TextMark(const QString &fileName, int lineNumber, Core::Id category, double widthFactor = 1.0)
virtual | ~TextMark()
void | addToToolTipLayout(QGridLayout *target)
virtual bool | addToolTipContent(QLayout *target)
TextDocument * | baseTextDocument() const
Core::Id | category() const
virtual void | clicked()
virtual void | dragToLine(int lineNumber)
QString | fileName() const
const QIcon & | icon() const
virtual bool | isClickable() const
virtual bool | isDraggable() const
bool | isVisible() const
int | lineNumber() const
virtual void | move(int line)
virtual void | paint(QPainter *painter, const QRect &rect) const
Priority | priority() const
virtual void | removedFromEditor()
void | setBaseTextDocument(TextDocument *baseTextDocument)
void | setIcon(const QIcon &icon)
void | setPriority(Priority prioriy)
void | setToolTip(const QString &toolTip)
void | setVisible(bool isVisible)
void | setWidthFactor(double factor)
QString | toolTip() const
virtual void | updateBlock(const QTextBlock &block)
virtual void | updateFileName(const QString &fileName)
virtual void | updateLineNumber(int lineNumber)
void | updateMarker()
double | widthFactor() const

## Static Public Members

Utils::Theme::Color | categoryColor(Core::Id category)
bool | categoryHasColor(Core::Id category)
void | setCategoryColor(Core::Id category, Utils::Theme::Color color)
void | setDefaultToolTip(Core::Id category, const QString &toolTip)

## Member Type Documentation

### enum TextMark::Priority

## Member Function Documentation

### TextMark::TextMark(const QString &fileName, int lineNumber, Core::Id category, double widthFactor = 1.0)

Default constructs an instance of TextMark.

### `[virtual]` TextMark::~TextMark()

Destroys the instance of TextMark. The destructor is virtual.

### void TextMark::addToToolTipLayout(QGridLayout *target)

### `[virtual]` bool TextMark::addToolTipContent(QLayout *target)

### TextDocument *TextMark::baseTextDocument() const

See also setBaseTextDocument().

### Core::Id TextMark::category() const

### `[static]` Utils::Theme::Color TextMark::categoryColor(Core::Id category)

See also setCategoryColor().

### `[static]` bool TextMark::categoryHasColor(Core::Id category)

### `[virtual]` void TextMark::clicked()

### `[virtual]` void TextMark::dragToLine(int lineNumber)

### QString TextMark::fileName() const

### const QIcon &TextMark::icon() const

See also setIcon().

### `[virtual]` bool TextMark::isClickable() const

### `[virtual]` bool TextMark::isDraggable() const

### bool TextMark::isVisible() const

### int TextMark::lineNumber() const

### `[virtual]` void TextMark::move(int line)

### `[virtual]` void TextMark::paint(QPainter *painter, const QRect &rect) const

### Priority TextMark::priority() const

See also setPriority().

### `[virtual]` void TextMark::removedFromEditor()

### void TextMark::setBaseTextDocument(TextDocument *baseTextDocument)

See also baseTextDocument().

### `[static]` void TextMark::setCategoryColor(Core::Id category, Utils::Theme::Color color)

See also categoryColor().

### `[static]` void TextMark::setDefaultToolTip(Core::Id category, const QString &toolTip)

### void TextMark::setIcon(const QIcon &icon)

See also icon().

### void TextMark::setPriority(Priority prioriy)

See also priority().

### void TextMark::setToolTip(const QString &toolTip)

See also toolTip().

### void TextMark::setVisible(bool isVisible)

See also isVisible().

### void TextMark::setWidthFactor(double factor)

See also widthFactor().

### QString TextMark::toolTip() const

See also setToolTip().

### `[virtual]` void TextMark::updateBlock(const QTextBlock &block)

### `[virtual]` void TextMark::updateFileName(const QString &fileName)

### `[virtual]` void TextMark::updateLineNumber(int lineNumber)

### void TextMark::updateMarker()

### double TextMark::widthFactor() const

See also setWidthFactor().