89 return d->blocks.size();
100 if (i < 0 || i >=
d->blocks.size())
102 return d->blocks.at(
i);
126 return d->blocks.indexOf(blockIt);
137 int item =
d->blocks.indexOf(blockIt) + 1;
192 static const char romanSymbolsLower[] =
"iiivixxxlxcccdcmmmm";
193 static const char romanSymbolsUpper[] =
"IIIVIXXXLXCCCDCMMMM";
200 int c[] = { 1, 4, 5, 9, 10, 40, 50, 90, 100, 400, 500, 900, 1000 };
202 for (
int i = 12;
i >= 0;
n %=
c[
i],
i--) {
205 int startDigit =
i + (
i+3)/4;
237 return numberSuffix +
result + numberPrefix;
239 return numberPrefix +
result + numberSuffix;
252 if (i < 0 || i >=
d->blocks.size())
269 fmt.setObjectIndex(-1);
287#include "moc_qtextlist.cpp"
QByteArray & append(char c)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QByteArray mid(qsizetype index, qsizetype len=-1) const
Returns a byte array containing len bytes from this byte array, starting at position pos.
static QByteArray fromRawData(const char *data, qsizetype size)
Constructs a QByteArray that uses the first size bytes of the data array.
static constexpr QChar fromUcs2(char16_t c) noexcept
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QTextBlockFormat blockFormat() const
Returns the QTextBlockFormat that describes block-specific properties.
Qt::LayoutDirection textDirection() const
static const QTextDocumentPrivate * get(const QTextDocument *document)
\reentrant \inmodule QtGui
QString numberSuffix() const
Style style() const
Returns the list format's style.
QString numberPrefix() const
QTextListPrivate(QTextDocument *doc)
QTextList(QTextDocument *doc)
int count() const
Returns the number of items in the list.
int itemNumber(const QTextBlock &) const
Returns the index of the list item that corresponds to the given block.
void add(const QTextBlock &block)
Makes the given block part of the list.
void removeItem(int i)
Removes the item at item position i from the list.
void remove(const QTextBlock &)
Removes the given block from the list.
QTextListFormat format() const
Returns the list's format.
QTextBlock item(int i) const
Returns the {i}-th text block in the list.
QString itemText(const QTextBlock &) const
Returns the text of the list item that corresponds to the given block.
int objectIndex() const
Returns the object index of this object.
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum format
GLdouble GLdouble GLdouble GLdouble q
QVideoFrameFormat::PixelFormat fmt
static int numDigits(qlonglong n)