add initial support of tag suggestion

This commit is contained in:
2016-10-24 08:12:14 +03:00
parent d520f55afc
commit 87406f70c4
6 changed files with 65 additions and 11 deletions

View File

@ -155,9 +155,7 @@ QStringList AWKeyOperations::dictKeys() const
for (auto item : m_graphicalItems->activeItems())
allKeys.append(item->tag(QString("bar")));
// static keys
QStringList staticKeys = QString(STATIC_KEYS).split(QChar(','));
std::for_each(staticKeys.cbegin(), staticKeys.cend(),
[&allKeys](const QString &key) { allKeys.append(key); });
allKeys.append(QString(STATIC_KEYS).split(QChar(',')));
// sort in valid order
allKeys.sort();