Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2300

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QTextBlock_iterator" doc="/**
&lt;p&gt;The QTextBlock::iterator class provides an iterator for reading the contents of a &lt;a href=&quot;QTextBlock.html&quot;&gt;&lt;tt&gt;QTextBlock&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A block consists of a sequence of text fragments. This class provides a way to iterate over these, and read their contents. It does not provide a way to modify the internal structure or contents of the block.&lt;/p&gt;
&lt;p&gt;An iterator can be constructed and used to access the fragments within a text block in the following way:&lt;/p&gt;
&lt;pre&gt;        QTextBlock::iterator it;
        for (it = currentBlock.begin(); !(it.atEnd()); ++it) {
            QTextFragment currentFragment = it.fragment();
            if (currentFragment.isValid())
                processFragment(currentFragment);

        }&lt;/pre&gt;

@see &lt;a href=&quot;QTextFragment.html&quot;&gt;&lt;tt&gt;QTextFragment&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QTextBlock_iterator(com.trolltech.qt.gui.QTextBlock_iterator o)" doc="/**
&lt;p&gt;Copy constructor. Constructs a copy of the &lt;tt&gt;o&lt;/tt&gt; iterator.&lt;/p&gt;
 */"/>
    <method name="public QTextBlock_iterator()" doc="/**
&lt;p&gt;Constructs an iterator for this text block.&lt;/p&gt;
 */"/>
    <method name="public final boolean atEnd()" doc="/**
&lt;p&gt;Returns true if the current item is the last item in the text block.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextFragment fragment()" doc="/**
&lt;p&gt;Returns the text fragment the iterator currently points to.&lt;/p&gt;
 */"/>
</class>