mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-13 22:05:48 +00:00
add tests for awkeys
This commit is contained in:
@ -177,8 +177,10 @@ QString AWKeys::valueByKey(QString key) const
|
||||
{
|
||||
qCDebug(LOG_AW) << "Requested value for key" << key;
|
||||
|
||||
key.remove(QRegExp(QString("^bar[0-9]{1,}")));
|
||||
return aggregator->formatter(values[key], key);
|
||||
QString trueKey
|
||||
= key.startsWith(QString("bar")) ? keyOperator->infoByKey(key) : key;
|
||||
|
||||
return aggregator->formatter(values[trueKey], trueKey);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user