Commit bf502906 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

GCC: Improve abi widget handling

Change-Id: I296848c0615fe0aca0dff3324054be7d7ec86b52
Reviewed-on: http://codereview.qt.nokia.com/785

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent fa8c621a
......@@ -607,7 +607,8 @@ QList<ToolChain *> Internal::GccToolChainFactory::autoDetectToolchains(const QSt
Internal::GccToolChainConfigWidget::GccToolChainConfigWidget(GccToolChain *tc) :
ToolChainConfigWidget(tc),
m_compilerPath(new Utils::PathChooser),
m_abiWidget(new AbiWidget)
m_abiWidget(new AbiWidget),
m_isReadOnly(false)
{
Q_ASSERT(tc);
......@@ -654,6 +655,8 @@ void Internal::GccToolChainConfigWidget::setFromToolchain()
GccToolChain *tc = static_cast<GccToolChain *>(toolChain());
m_compilerPath->setPath(tc->compilerPath());
m_abiWidget->setAbis(tc->supportedAbis(), tc->targetAbi());
if (!m_isReadOnly && !m_compilerPath->path().isEmpty())
m_abiWidget->setEnabled(true);
setDebuggerCommand(tc->debuggerCommand());
blockSignals(blocked);
}
......@@ -670,6 +673,7 @@ void Internal::GccToolChainConfigWidget::makeReadOnly()
{
m_compilerPath->setEnabled(false);
m_abiWidget->setEnabled(false);
m_isReadOnly = true;
ToolChainConfigWidget::makeReadOnly();
}
......
......@@ -105,6 +105,7 @@ private:
QString m_autoDebuggerCommand;
QList<Abi> m_abiList;
bool m_isReadOnly;
};
// --------------------------------------------------------------------------
......
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