mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Function for getKeyStrings() and replace without key (just adding)
This commit is contained in:
committed by
Mat Sutcliffe
parent
94b53cef6c
commit
21acef505c
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user