hide QMAKE_MKSPECS from display of qt version info

BaseQtVersion & co. don't use it for anything anymore. and as the value
used by the project evaluator and qmake during actual project processing
may be "slighly" more extensive than what an out-of-project -query
returns, displaying the value is actually somewhat counterproductive.

Change-Id: I7f22044780d00e71e18d6f3bcf636df756bbcdd3
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Oswald Buddenhagen
2012-07-06 18:35:44 +02:00
parent 5e596e89d0
commit dc84ac3c0a

View File

@@ -506,10 +506,10 @@ QString BaseQtVersion::toHtml(bool verbose) const
for (QHash<QString,QString>::const_iterator it = vInfo.constBegin(); it != vcend; ++it) { for (QHash<QString,QString>::const_iterator it = vInfo.constBegin(); it != vcend; ++it) {
const QString &variableName = it.key(); const QString &variableName = it.key();
const QString &value = it.value(); const QString &value = it.value();
if (!variableName.endsWith(QLatin1String("/raw")) && !variableName.endsWith(QLatin1String("/get"))) { if (variableName != QLatin1String("QMAKE_MKSPECS")
&& !variableName.endsWith(QLatin1String("/raw")) && !variableName.endsWith(QLatin1String("/get"))) {
const bool isPath = !value.isEmpty() && const bool isPath = !value.isEmpty() &&
(variableName == QLatin1String("QMAKE_MKSPECS") (variableName.contains(QLatin1String("HOST"))
|| variableName.contains(QLatin1String("HOST"))
|| variableName.contains(QLatin1String("INSTALL"))); || variableName.contains(QLatin1String("INSTALL")));
str << "<tr><td><pre>" << variableName << "</pre></td><td>"; str << "<tr><td><pre>" << variableName << "</pre></td><td>";
if (isPath) { if (isPath) {