qml improvements

* move functions to plugin part
* move model to general.qml
This commit is contained in:
2016-10-15 00:01:10 +03:00
parent 80767c9dbf
commit d74cd645fd
5 changed files with 91 additions and 87 deletions

View File

@ -144,6 +144,10 @@ QStringList AWKeys::dictKeys(const bool sorted, const QString regexp) const
qCDebug(LOG_AW) << "Should be sorted" << sorted << "and filter applied"
<< regexp;
// check if functions asked
if (regexp == QString("functions"))
return QString(STATIC_FUNCTIONS).split(QChar(','));
QStringList allKeys = m_keyOperator->dictKeys();
// sort if required
if (sorted)