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;
177 result.prepend(QChar::fromUcs2(baseChar + (
c % 26)));
194 romanSymbols =
"iiivixxxlxcccdcmmmm"_L1;
196 romanSymbols =
"IIIVIXXXLXCCCDCMMMM"_L1;
198 int c[] = { 1, 4, 5, 9, 10, 40, 50, 90, 100, 400, 500, 900, 1000 };
200 for (
int i = 12;
i >= 0;
n %=
c[
i],
i--) {
203 int startDigit =
i + (
i+3)/4;
221 romanNumeral.append(romanSymbols.sliced(startDigit,
numDigits));
224 result = std::move(romanNumeral);
235 return numberSuffix +
result + numberPrefix;
237 return numberPrefix +
result + numberSuffix;
250 if (i < 0 || i >=
d->blocks.size())
267 fmt.setObjectIndex(-1);
285#include "moc_qtextlist.cpp"
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void setIndent(int indent)
Sets the paragraph's indentation.
QTextBlockFormat blockFormat() const
Returns the QTextBlockFormat that describes block-specific properties.
static const QTextDocumentPrivate * get(const QTextDocument *document)
\reentrant \inmodule QtGui
void setObjectIndex(int object)
Sets the format object's object index.
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)