add findKeys() function

it's time to drink!
This commit is contained in:
arcan1s 2014-08-30 18:17:37 +04:00
parent 96cfeb520d
commit 8a6650f833

View File

@ -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;
}