Commit f60a94f7 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Re-add version tooltips for debugger command.



Change-Id: Ic89c98426796401577abfd2301fc77e7ee8a8f9b
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent a50721ca
...@@ -172,7 +172,8 @@ void DebuggerKitConfigWidget::setFileName(const Utils::FileName &fn) ...@@ -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() ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment