mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-06 10:25:52 +00:00
initial implementation of custom keys
This commit is contained in:
@ -86,6 +86,7 @@ bool AWKeyCache::addKeyToCache(const QString &_type, const QString &_key)
|
||||
QStringList AWKeyCache::getRequiredKeys(const QStringList &_keys,
|
||||
const QStringList &_bars,
|
||||
const QVariantMap &_tooltip,
|
||||
const QStringList &_userKeys,
|
||||
const QStringList &_allKeys)
|
||||
{
|
||||
qCDebug(LOG_AW) << "Looking for required keys in" << _keys << _bars
|
||||
@ -94,6 +95,7 @@ QStringList AWKeyCache::getRequiredKeys(const QStringList &_keys,
|
||||
// initial copy
|
||||
QSet<QString> used = QSet<QString>::fromList(_keys);
|
||||
used.unite(QSet<QString>::fromList(_bars));
|
||||
used.unite(QSet<QString>::fromList(_userKeys));
|
||||
// insert keys from tooltip
|
||||
for (auto &key : _tooltip.keys()) {
|
||||
if ((key.endsWith("Tooltip")) && (_tooltip[key].toBool())) {
|
||||
|
Reference in New Issue
Block a user