Function for getKeyStrings() and replace without key (just adding)

This commit is contained in:
Klaus Basan
2019-02-17 22:43:32 +01:00
committed by Mat Sutcliffe
parent 94b53cef6c
commit 21acef505c
4 changed files with 23 additions and 3 deletions

View File

@@ -25,6 +25,16 @@ namespace BlackMisc
CSequence<CKeyboardKey>(baseClass)
{ }
QStringList CKeyboardKeyList::getKeyStrings() const
{
QStringList keys;
for (const CKeyboardKey &k : *this)
{
if (k.hasKey()) { keys.push_back(k.getKeyAsString()); }
}
return keys;
}
const CKeyboardKeyList &CKeyboardKeyList::allSupportedKeys()
{
static const CKeyboardKeyList allKeys =