mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Working on the Settings tab: start the importer/wizard
This commit is contained in:
parent
cfe66abbc5
commit
21c406316f
12 changed files with 342 additions and 109 deletions
|
@ -41,14 +41,20 @@ QStringList Config::LauncherSettings::subKeys(const QString &key)
|
|||
QMap<QString, QString> settings = SettingsBase::getSettings();
|
||||
QStringList keys = settings.uniqueKeys();
|
||||
|
||||
qDebug() << keys;
|
||||
|
||||
QRegExp keyRe("(.+)/");
|
||||
|
||||
QStringList result;
|
||||
|
||||
foreach (const QString ¤tKey, keys) {
|
||||
if (keyRe.indexIn(currentKey) != -1) {
|
||||
|
||||
if (keyRe.indexIn(currentKey) != -1)
|
||||
{
|
||||
QString prefixedKey = keyRe.cap(1);
|
||||
if(prefixedKey.startsWith(key)) {
|
||||
|
||||
if(prefixedKey.startsWith(key))
|
||||
{
|
||||
QString subKey = prefixedKey.remove(key);
|
||||
if (!subKey.isEmpty())
|
||||
result.append(subKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue