From 000fbe63bcfee71605c485645ca4b337f71737be Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 23 Jun 2014 17:24:34 +0200 Subject: [PATCH] Variables: Show current value of variable in chooser dialog Helps to determine whether a specific variable is the right one to use. At least structure can be more easily inferred than from most available descriptions. Change-Id: I401603934a99e3d3fe9a26c7cb617b9baa0d502c Reviewed-by: Eike Ziller --- src/plugins/coreplugin/variablechooser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/variablechooser.cpp b/src/plugins/coreplugin/variablechooser.cpp index fc49594093a..7955a5aa67f 100644 --- a/src/plugins/coreplugin/variablechooser.cpp +++ b/src/plugins/coreplugin/variablechooser.cpp @@ -145,7 +145,8 @@ void VariableChooser::updateDescription(const QString &variable) if (variable.isNull()) ui->variableDescription->setText(m_defaultDescription); else - ui->variableDescription->setText(VariableManager::variableDescription(variable.toUtf8())); + ui->variableDescription->setText(VariableManager::variableDescription(variable.toUtf8()) + + QLatin1String("

") + tr("Current Value: %1").arg(VariableManager::value(variable.toUtf8()))); } /*!