From feb33916fd2f2717a9c368bd0371b95fc83a79af Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 30 Jan 2013 18:43:13 +0100 Subject: [PATCH] remove versioned config backwards compatibility hack the vendor string was changed, so compat is broken anyway. Change-Id: I07241843237ce28bd7a869bb4170c7e4c8d084df Reviewed-by: Joerg Bornemann --- qmake/property.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/qmake/property.cpp b/qmake/property.cpp index 808800beef..c4fbcd6b78 100644 --- a/qmake/property.cpp +++ b/qmake/property.cpp @@ -118,10 +118,7 @@ QMakeProperty::value(const ProKey &vk) return val; initSettings(); - QString v = vk.toQString(); - if (!settings->contains(v)) - return settings->value("2.01a/" + v).toString(); // Backwards compat - return settings->value(v).toString(); + return settings->value(vk.toQString()).toString(); } bool @@ -135,7 +132,6 @@ QMakeProperty::setValue(QString var, const QString &val) { initSettings(); settings->setValue(var, val); - settings->remove("2.01a/" + var); // Backwards compat } void @@ -143,7 +139,6 @@ QMakeProperty::remove(const QString &var) { initSettings(); settings->remove(var); - settings->remove("2.01a/" + var); // Backwards compat } bool @@ -153,13 +148,8 @@ QMakeProperty::exec() if(Option::qmake_mode == Option::QMAKE_QUERY_PROPERTY) { if(Option::prop::properties.isEmpty()) { initSettings(); - QStringList keys = settings->childKeys(); - settings->beginGroup("2.01a"); - keys += settings->childKeys(); - settings->endGroup(); - keys.removeDuplicates(); - foreach (const QString &key, keys) { - QString val = settings->value(settings->contains(key) ? key : "2.01a/" + key).toString(); + foreach (const QString &key, settings->childKeys()) { + QString val = settings->value(key).toString(); fprintf(stdout, "%s:%s\n", qPrintable(key), qPrintable(val)); } QStringList specialProps;