Re-add version tooltips for debugger command.

Change-Id: Ic89c98426796401577abfd2301fc77e7ee8a8f9b
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Friedemann Kleint
2012-09-06 08:33:46 +02:00
parent a50721ca7a
commit f60a94f759

View File

@@ -172,7 +172,8 @@ void DebuggerKitConfigWidget::setFileName(const Utils::FileName &fn)
void DebuggerKitConfigWidget::refreshLabel() void DebuggerKitConfigWidget::refreshLabel()
{ {
QString text; QString text;
switch (engineType()) { const DebuggerEngineType type = engineType();
switch (type) {
case CdbEngineType: { case CdbEngineType: {
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
const bool is64bit = Utils::winIs64BitSystem(); const bool is64bit = Utils::winIs64BitSystem();
@@ -192,6 +193,9 @@ void DebuggerKitConfigWidget::refreshLabel()
} }
m_label->setText(text); m_label->setText(text);
m_label->setVisible(!text.isEmpty()); m_label->setVisible(!text.isEmpty());
m_chooser->setCommandVersionArguments(type == CdbEngineType ?
QStringList(QLatin1String("-version")) :
QStringList(QLatin1String("--version")));
} }
} // namespace Internal } // namespace Internal