mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 20:20:44 +00:00
Remove old MigrateSettings() code
This commit is contained in:
parent
9cee9a6e03
commit
b13545487c
@ -51,31 +51,6 @@ void sDelay(int s)
|
|||||||
|
|
||||||
int compareVersion(QString version);
|
int compareVersion(QString version);
|
||||||
|
|
||||||
|
|
||||||
/*void MigrateSettings()
|
|
||||||
{
|
|
||||||
QSettings settings;
|
|
||||||
if (settings.contains("Version")) { return; } // done, we are new
|
|
||||||
|
|
||||||
QSettings oldcopy(getDeveloperName(), getAppName()+"-Testing");
|
|
||||||
if (oldcopy.contains("Migrated")) { return; }
|
|
||||||
|
|
||||||
QStringList keys = oldcopy.allKeys();
|
|
||||||
|
|
||||||
|
|
||||||
for (int i=0; i<keys.size(); ++i) {
|
|
||||||
const QString & key = keys[i];
|
|
||||||
settings.setValue(key, oldcopy.value(key));
|
|
||||||
}
|
|
||||||
|
|
||||||
oldcopy.setValue("Migrated", true);
|
|
||||||
settings.setValue("Version", VersionString);
|
|
||||||
|
|
||||||
qDebug() << keys;
|
|
||||||
|
|
||||||
} */
|
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
#ifdef Q_WS_X11
|
#ifdef Q_WS_X11
|
||||||
|
Loading…
Reference in New Issue
Block a user