forked from qt-creator/qt-creator
Re-add version tooltips for debugger command.
Change-Id: Ic89c98426796401577abfd2301fc77e7ee8a8f9b Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user