2023-08-23 14:10:58 +02:00
|
|
|
// Copyright (C) 2017 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
|
|
2023-08-23 16:53:06 +02:00
|
|
|
#include "store.h"
|
2023-08-23 14:10:58 +02:00
|
|
|
|
2023-08-23 18:18:46 +02:00
|
|
|
#include "algorithm.h"
|
2023-08-23 14:10:58 +02:00
|
|
|
|
|
|
|
|
namespace Utils {
|
|
|
|
|
|
2023-08-23 18:18:46 +02:00
|
|
|
KeyList keyListFromStringList(const QStringList &list)
|
|
|
|
|
{
|
|
|
|
|
#ifdef QTC_USE_STORE
|
|
|
|
|
return transform(list, [](const QString &str) { return str.toUtf8(); });
|
|
|
|
|
#else
|
|
|
|
|
return list;
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-23 14:10:58 +02:00
|
|
|
} // Utils
|