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-24 16:14:26 +02:00
|
|
|
KeyList keysFromStrings(const QStringList &list)
|
2023-08-23 18:18:46 +02:00
|
|
|
{
|
2023-08-24 16:14:26 +02:00
|
|
|
return transform(list, &keyFromString);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QStringList stringsFromKeys(const KeyList &list)
|
|
|
|
|
{
|
|
|
|
|
return transform(list, &stringFromKey);
|
2023-08-23 18:18:46 +02:00
|
|
|
}
|
|
|
|
|
|
2023-08-23 14:10:58 +02:00
|
|
|
} // Utils
|