forked from qt-creator/qt-creator
Utils/ProjectExplorer: More Key and Store
Change-Id: Ic9cc3a36b320c7413c362d1a1cdf024298d25027 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -7,13 +7,14 @@
|
||||
|
||||
namespace Utils {
|
||||
|
||||
KeyList keyListFromStringList(const QStringList &list)
|
||||
KeyList keysFromStrings(const QStringList &list)
|
||||
{
|
||||
#ifdef QTC_USE_STORE
|
||||
return transform(list, [](const QString &str) { return str.toUtf8(); });
|
||||
#else
|
||||
return list;
|
||||
#endif
|
||||
return transform(list, &keyFromString);
|
||||
}
|
||||
|
||||
QStringList stringsFromKeys(const KeyList &list)
|
||||
{
|
||||
return transform(list, &stringFromKey);
|
||||
}
|
||||
|
||||
} // Utils
|
||||
|
||||
Reference in New Issue
Block a user