StelIniParser.cpp   StelIniParser.cpp 
skipping to change at line 82 skipping to change at line 82
map[k] = QVariant(v); map[k] = QVariant(v);
} }
} }
return true; return true;
} }
bool writeStelIniFile(QIODevice &device, const QSettings::SettingsMap &map) bool writeStelIniFile(QIODevice &device, const QSettings::SettingsMap &map)
{ {
int maxKeyWidth = 30; int maxKeyWidth = 30;
QRegExp reKeyXt("^(.+)/(.+)$"); // for extracting keys/values QRegExp reKeyXt("^([^/]+)/(.+)$"); // for extracting keys/values
// first go over map and find longest key length // first go over map and find longest key length
for(int i=0; i<map.keys().size(); i++) for(int i=0; i<map.keys().size(); i++)
{ {
QString k = map.keys().at(i); QString k = map.keys().at(i);
QString key = k; QString key = k;
if (reKeyXt.exactMatch(k)) if (reKeyXt.exactMatch(k))
key = reKeyXt.cap(2); key = reKeyXt.cap(2);
if (key.size() > maxKeyWidth) maxKeyWidth = key.size(); if (key.size() > maxKeyWidth) maxKeyWidth = key.size();
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/