mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 07:57:19 +00:00
add findKeys() function
it's time to drink!
This commit is contained in:
parent
96cfeb520d
commit
8a6650f833
@ -114,6 +114,12 @@ QStringList AwesomeWidget::findKeys()
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QStringList selectedKeys;
|
||||
for (int i=0; i<keys.count(); i++)
|
||||
if (configuration[QString("text")]
|
||||
.indexOf(QString("$") + keys[i] + QString("$")) > -1) {
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Found key" << keys[i];
|
||||
selectedKeys.append(keys[i]);
|
||||
}
|
||||
|
||||
return selectedKeys;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user