Qt:Документация 4.3.2/qtextlistformat
Материал из Wiki.crossplatform.ru
Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
Содержание |
[править] QTextListFormat Class Reference
[модуль QtGui ]
The QTextListFormat class provides formatting information for lists in a QTextDocument. Далее...
#include <QTextListFormat>
Inherits QTextFormat.
[править] Открытые типы
- enum Style { ListDisc, ListCircle, ListSquare, ListDecimal, ListLowerAlpha, ListUpperAlpha }
[править] Открытые функции
- QTextListFormat ()
- int indent () const
- bool isValid () const
- void setIndent ( int indentation )
- void setStyle ( Style style )
- Style style () const
- 47 public functions inherited from QTextFormat
[править] Подробное описание
The QTextListFormat class provides formatting information for lists in a QTextDocument.
A list is composed of one or more items, represented as text blocks. The list's format specifies the appearance of items in the list. In particular, it determines the indentation and the style of each item.
The indentation of the items is an integer value that causes each item to be offset from the left margin by a certain amount. This value is read with indent() and set with setIndent().
The style used to decorate each item is set with setStyle() and can be read with the style() function. The style controls the type of bullet points and numbering scheme used for items in the list. Note that lists that use the decimal numbering scheme begin counting at 1 rather than 0.
See also QTextList.
[править] Описание типов
[править] enum QTextListFormat::Style
This enum describes the symbols used to decorate list items:
Константа | Значение | Описание |
---|---|---|
QTextListFormat::ListDisc | -1 | a filled circle |
QTextListFormat::ListCircle | -2 | an empty circle |
QTextListFormat::ListSquare | -3 | a filled square |
QTextListFormat::ListDecimal | -4 | decimal values in ascending order |
QTextListFormat::ListLowerAlpha | -5 | lower case Latin characters in alphabetical order |
QTextListFormat::ListUpperAlpha | -6 | upper case Latin characters in alphabetical order |
[править] Описание функций-членов
[править] QTextListFormat::QTextListFormat ()
Constructs a new list format object.
[править] int QTextListFormat::indent () const
Returns the list format's indentation.
See also setIndent().
[править] bool QTextListFormat::isValid () const
Returns true if this list format is valid; otherwise returns false.
[править] void QTextListFormat::setIndent ( int indentation )
Sets the list format's indentation.
See also indent().
[править] void QTextListFormat::setStyle ( Style style )
Sets the list format's style. See Style for the available styles.
Смотрите также style().
[править] Style QTextListFormat::style () const
Returns the list format's style. See Style.
Смотрите также setStyle().
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.2
|