Use QStringList::join(QChar) overload where applicable [QtWidgets]

This is an automated change performing the following replacements:
                    join\("(.)"\) -> join('\1')
  join\(QLatin1String\("(.)"\)\)  -> join(QLatin1Char('\1'))
  join\(QStringLiteral\("(.)"\)\) -> join(QLatin1Char('\1'))

Change-Id: Ia30048e0c40967dc86a4e4ad26ac02ab67519096
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Marc Mutz 2012-05-18 20:00:23 +02:00 committed by Qt by Nokia
parent e002bdee39
commit 781b642671
5 changed files with 5 additions and 5 deletions

View File

@ -1701,7 +1701,7 @@ bool AtSpiAdaptor::actionInterface(const QAIPointer &interface, const QString &f
keyBindings.append(acc);
}
if (keyBindings.length() > 0)
sendReply(connection, message, keyBindings.join(QLatin1String(";")));
sendReply(connection, message, keyBindings.join(QLatin1Char(';')));
else
sendReply(connection, message, QString());
} else {

View File

@ -204,7 +204,7 @@ static inline QFont *readKdeFontSetting(const QSettings &settings, const QString
const QStringList list = fontValue.toStringList();
if (!list.isEmpty()) {
fontFamily = list.first();
fontDescription = list.join(QStringLiteral(","));
fontDescription = list.join(QLatin1Char(','));
}
} else {
fontDescription = fontFamily = fontValue.toString();

View File

@ -3049,7 +3049,7 @@ void QFileDialogPrivate::_q_selectionChanged()
allFiles.replace(i, QString(QLatin1Char('"') + allFiles.at(i) + QLatin1Char('"')));
}
QString finalFiles = allFiles.join(QLatin1String(" "));
QString finalFiles = allFiles.join(QLatin1Char(' '));
if (!finalFiles.isEmpty() && !lineEdit()->hasFocus() && lineEdit()->isVisible())
lineEdit()->setText(finalFiles);
else

View File

@ -1468,7 +1468,7 @@ public:
}
QString valueStr;
if(value.type() == QVariant::StringList || value.type() == QVariant::List)
valueStr = value.toStringList().join(QLatin1String(" "));
valueStr = value.toStringList().join(QLatin1Char(' '));
else
valueStr = value.toString();
cache[name] = valueStr;

View File

@ -87,7 +87,7 @@ QString CsvCompleter::pathFromIndex(const QModelIndex& si) const
if (list.count() == 1)
return list[0];
return list.join(",");
return list.join(',');
}
class tst_QCompleter : public QObject