Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QTextListFormat Class Reference

The QTextListFormat class provides formatting information for lists in a QTextDocument. More...

#include <QTextListFormat>

Inherits QTextFormat.

List of all members.

Public Types

Public Functions


Detailed Description

The QTextListFormat class provides formatting information for lists in a QTextDocument.

A list is composed of one or more items; each item is a block. A list format is used to specify the characteristics of a list, for example, setStyle() controls the bulleting or numbering of the list items, and setIndent() controls the list's indentation.


Member Type Documentation

enum QTextListFormat::Style

QTextListFormat::ListDisc 
QTextListFormat::ListCircle 
QTextListFormat::ListSquare 
QTextListFormat::ListDecimal 
QTextListFormat::ListLowerAlpha 
QTextListFormat::ListUpperAlpha 

Member Function Documentation

QTextListFormat::QTextListFormat ()

Constructs a new QTextListFormat.

int QTextListFormat::indent () const

Returns the list format's indent.

See also setIndent().

bool QTextListFormat::isValid () const

Returns true if this list format is valid; otherwise returns false.

void QTextListFormat::setIndent ( int indent )

Sets the list format's indent to indent.

See also indent().

void QTextListFormat::setStyle ( int style )

Sets the list format's list style to style. See Style.

See also style().

int QTextListFormat::style () const

Returns the list format's style. See Style.

See also setStyle().


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1