forked from qt-creator/qt-creator
More Utils::toSet/toList
... and unrelated cosmetic changes. Change-Id: I591b17fd5289831e701b683f8fb47816efd1fa67 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -37,17 +37,21 @@
|
||||
|
||||
#include <aggregation/aggregate.h>
|
||||
#include <cpptools/cppmodelmanager.h>
|
||||
|
||||
#include <coreplugin/find/basetextfind.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/checkablemessagebox.h>
|
||||
#include <utils/completingtextedit.h>
|
||||
#include <utils/synchronousprocess.h>
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/icon.h>
|
||||
#include <utils/theme/theme.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/synchronousprocess.h>
|
||||
#include <utils/temporarydirectory.h>
|
||||
#include <coreplugin/find/basetextfind.h>
|
||||
#include <utils/theme/theme.h>
|
||||
|
||||
#include <texteditor/fontsettings.h>
|
||||
#include <texteditor/texteditorsettings.h>
|
||||
|
||||
@@ -459,7 +463,7 @@ void VcsBaseSubmitEditor::setFileModel(SubmitFileModel *model)
|
||||
// Populate completer with symbols
|
||||
if (!uniqueSymbols.isEmpty()) {
|
||||
QCompleter *completer = d->m_widget->descriptionEdit()->completer();
|
||||
QStringList symbolsList = uniqueSymbols.toList();
|
||||
QStringList symbolsList = Utils::toList(uniqueSymbols);
|
||||
symbolsList.sort();
|
||||
completer->setModel(new QStringListModel(symbolsList, completer));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user