Read all saved Gateways (for selecting in Systray) (#181)

This commit is contained in:
gmarco
2022-10-07 06:37:51 +02:00
committed by GitHub
parent 75a24c89cd
commit fab25848e1
3 changed files with 16 additions and 2 deletions

View File

@@ -115,6 +115,12 @@ QVariant gpclient::helper::settings::get(const QString &key, const QVariant &def
return _settings->value(key, defaultValue);
}
QStringList gpclient::helper::settings::get_all(const QString &key, const QVariant &defaultValue)
{
QRegularExpression re(key);
return _settings->allKeys().filter(re);
}
void gpclient::helper::settings::save(const QString &key, const QVariant &value)
{
_settings->setValue(key, value);