forked from qt-creator/qt-creator
VariableManager: Do not try to expand Prefixes
Resolving "Prefix:<value>" does not make any sense, so let's not do that. Task-number: QTCREATORBUG-15072 Change-Id: Ia9741f9b48d269a7be31163ad73c3bc232856419 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -177,8 +177,11 @@ public:
|
||||
}
|
||||
|
||||
if (role == Qt::ToolTipRole) {
|
||||
QString description = m_expander->variableDescription(m_variable.toUtf8());
|
||||
const QString value = m_expander->value(m_variable.toUtf8()).toHtmlEscaped();
|
||||
const QByteArray var = m_variable.toUtf8();
|
||||
QString description = m_expander->variableDescription(var);
|
||||
QString value;
|
||||
if (!m_expander->isPrefixVariable(var))
|
||||
value = m_expander->value(var).toHtmlEscaped();
|
||||
if (!value.isEmpty())
|
||||
description += QLatin1String("<p>") + VariableChooser::tr("Current Value: %1").arg(value);
|
||||
return description;
|
||||
|
||||
Reference in New Issue
Block a user