Utils etc: More use of Key and Store

Change-Id: Idd2d70617f775d783aee93a2fe82544ad335a739
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-08-23 18:18:46 +02:00
parent 0490266723
commit 621a2850d0
19 changed files with 137 additions and 95 deletions

View File

@@ -3,7 +3,17 @@
#include "store.h"
#include "algorithm.h"
namespace Utils {
KeyList keyListFromStringList(const QStringList &list)
{
#ifdef QTC_USE_STORE
return transform(list, [](const QString &str) { return str.toUtf8(); });
#else
return list;
#endif
}
} // Utils