Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QList< QTextLayout::FormatRange > QTextLayout::additionalFormats (  )  const

Returns the list of additional formats supported by the text layout.

See also:
setAdditionalFormats(), clearAdditionalFormats()

Definition at line 544 of file qtextlayout.cpp.

{
    QList<FormatRange> formats;
    if (!d->specialData)
        return formats;

    formats = d->specialData->addFormats;

    if (d->specialData->addFormatIndices.isEmpty())
        return formats;

    const QTextFormatCollection *collection = d->formats();

    for (int i = 0; i < d->specialData->addFormatIndices.count(); ++i)
        formats[i].format = collection->charFormat(d->specialData->addFormatIndices.at(i));

    return formats;
}


Generated by  Doxygen 1.6.0   Back to index