QtGui: get rid of the last Java-style iterator
Trivial. Java-style iterators are going to be deprecated. Change-Id: Ie94658be988cc095fb3b05d0d4ef6e7e3bf9a2af Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
b03385f9cf
commit
1065777a2a
@ -473,9 +473,7 @@ void QTextOdfWriter::writeFormats(QXmlStreamWriter &writer, const QSet<int> &for
|
||||
{
|
||||
writer.writeStartElement(officeNS, QString::fromLatin1("automatic-styles"));
|
||||
QVector<QTextFormat> allStyles = m_document->allFormats();
|
||||
QSetIterator<int> formatId(formats);
|
||||
while(formatId.hasNext()) {
|
||||
int formatIndex = formatId.next();
|
||||
for (int formatIndex : formats) {
|
||||
QTextFormat textFormat = allStyles.at(formatIndex);
|
||||
switch (textFormat.type()) {
|
||||
case QTextFormat::CharFormat:
|
||||
|
Loading…
Reference in New Issue
Block a user