Logo FluentUI

LineNumberModel QML Type

Line number model for code editor controls. More...

Import Statement: import FluentUI.impl 1.0

Properties

Signals

Methods

Detailed Description

The LineNumberModel type provides line-number data for use in code editor line number areas. It computes the current line number based on the text document and cursor position.

Property Documentation

lineCount : int

The total number of lines in the associated text document.

Signal Documentation

void lineCountChanged()

Emitted when the total number of lines in the text document changes.

Note: The corresponding handler is onLineCountChanged.

Method Documentation

int currentLineNumber(TextDocument textDocument, int cursorPosition)

Returns the line number at the given cursorPosition within the specified textDocument.