diff options
author | hjk <hjk121@nokiamail.com> | 2014-08-23 01:19:53 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2014-08-25 08:21:14 +0200 |
commit | 6431ab2c799553623ec3fe6a79f1e85484558dd6 (patch) | |
tree | e82f7812bb38906d75bc41109336206fa09eff9d /src/plugins/qtsupport/exampleslistmodel.cpp | |
parent | 2b5df11cb8f6e8d40d86728e8b788aff3a755907 (diff) |
Use Qt 5's QStringList::join(QChar)
Less typing and less cycles than join(QString) where appropriate
Change-Id: I6ebc0e17e4d7fd9845864dd95b7de4ba4dad6906
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/qtsupport/exampleslistmodel.cpp')
-rw-r--r-- | src/plugins/qtsupport/exampleslistmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp index 7e3f465f1b9..e3b946e6614 100644 --- a/src/plugins/qtsupport/exampleslistmodel.cpp +++ b/src/plugins/qtsupport/exampleslistmodel.cpp @@ -657,7 +657,7 @@ QVariant ExamplesListModel::data(const QModelIndex &index, int role) const switch (role) { case Qt::DisplayRole: // for search only - return QString(prefixForItem(item) + item.name + QLatin1Char(' ') + item.tags.join(QLatin1String(" "))); + return QString(prefixForItem(item) + item.name + QLatin1Char(' ') + item.tags.join(QLatin1Char(' '))); case Name: return item.name; case ProjectPath: |