Qt:Документация 4.3.2/qtextframe-iterator

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] QTextFrame::iterator Class Reference
[модуль QtGui ]

The iterator class provides an iterator for reading the contents of a QTextFrame. Далее...

 #include <[[Qt:Документация 4.3.2/qtextframe | QTextFrame]]>

[править] Открытые функции


[править] Подробное описание

The iterator class provides an iterator for reading the contents of a QTextFrame.

A frame consists of an arbitrary sequence of QTextBlocks and child QTextFrames. This class provides a way to iterate over the child objects of a frame, and read their contents. It does not provide a way to modify the contents of the frame.


[править] Описание функций-членов

[править]
iterator::iterator ()

Constructs an invalid iterator.

[править]
iterator::iterator ( const iterator & other )

Copy constructor. Constructs a copy of the other iterator.

[править]
bool iterator::atEnd () const

Returns true if the current item is the last item in the text frame.

[править]
QTextBlock iterator::currentBlock () const

Returns the current block the iterator points to. If the iterator points to a child frame, the returned block is invalid.

See also currentFrame().

[править]
QTextFrame * iterator::currentFrame () const

Returns the current frame pointed to by the iterator, or 0 if the iterator currently points to a block.

See also currentBlock().

[править]
QTextFrame * iterator::parentFrame () const

Returns the parent frame of the current frame.

See also currentFrame() and QTextFrame::parentFrame().

[править]
bool iterator::operator!= ( const iterator & other ) const

Retuns true if the iterator is different from the other iterator; otherwise returns false.

[править]
iterator & iterator::operator++ ()

Moves the iterator to the next frame or block.

See also currentBlock() and currentFrame().

[править]
iterator iterator::operator++ ( int )

Эта перегруженная функция предоставлена для удобства.

The postfix ++ operator (i++) advances the iterator to the next item in the text frame, and returns an iterator to the old item.

[править]
iterator & iterator::operator-- ()

Moves the iterator to the previous frame or block.

See also currentBlock() and currentFrame().

[править]
iterator iterator::operator-- ( int )

Эта перегруженная функция предоставлена для удобства.

The postfix -- operator (i--) makes the preceding item in the current frame, and returns an iterator to the old item.

[править]
iterator & iterator::operator= ( const iterator & other )

Assigns other to this iterator and returns a reference to this iterator.

[править]
bool iterator::operator== ( const iterator & other ) const

Retuns true if the iterator is the same as the other iterator; otherwise returns false.



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2