Commit 6572cfa5 authored by Tobias Hunger's avatar Tobias Hunger

ToolChain: Remove unnecessary parameter

Change-Id: I7918a0eb89b2d3a3edcbb6bec4021db89c546a72
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent da2aa0df
......@@ -795,7 +795,7 @@ void Internal::GccToolChainConfigWidget::handleAbiChange()
m_autoDebuggerCommand = ToolChainManager::instance()->defaultDebugger(abi);
setDebuggerCommand(m_autoDebuggerCommand);
}
emit dirty(toolChain());
emit dirty();
}
// --------------------------------------------------------------------------
......
......@@ -149,7 +149,7 @@ void ToolChainConfigWidget::emitDirty()
d->m_mkspecEdited = (mkspecListFromString(d->m_mkspecEdit->text()) != d->m_suggestedMkspec);
if (d->m_mkspecResetButton)
d->m_mkspecResetButton->setEnabled(d->m_mkspecEdited);
emit dirty(toolChain());
emit dirty();
}
void ToolChainConfigWidget::resetMkspecList()
......
......@@ -71,7 +71,7 @@ public:
virtual void makeReadOnly();
signals:
void dirty(ProjectExplorer::ToolChain *);
void dirty();
protected slots:
void emitDirty();
......
......@@ -285,10 +285,11 @@ bool ToolChainModel::isDirty(ToolChain *tc) const
return false;
}
void ToolChainModel::setDirty(ToolChain *tc)
void ToolChainModel::setDirty()
{
ToolChainConfigWidget *w = qobject_cast<ToolChainConfigWidget *>(sender());
foreach (ToolChainNode *n, m_manualRoot->childNodes) {
if (n->toolChain == tc) {
if (n->widget == w) {
n->changed = true;
emit dataChanged(index(n, 0), index(n, columnCount(QModelIndex())));
}
......@@ -404,8 +405,8 @@ ToolChainNode *ToolChainModel::createNode(ToolChainNode *parent, ToolChain *tc,
ToolChainNode *node = new ToolChainNode(parent, tc, changed);
if (node->widget) {
m_configWidgetParent->layout()->addWidget(node->widget);
connect(node->widget, SIGNAL(dirty(ProjectExplorer::ToolChain*)),
this, SLOT(setDirty(ProjectExplorer::ToolChain*)));
connect(node->widget, SIGNAL(dirty()),
this, SLOT(setDirty()));
}
return node;
}
......
......@@ -96,7 +96,7 @@ signals:
private slots:
void addToolChain(ProjectExplorer::ToolChain *);
void removeToolChain(ProjectExplorer::ToolChain *);
void setDirty(ProjectExplorer::ToolChain *);
void setDirty();
private:
QModelIndex index(ToolChainNode *, int column = 0) const;
......
......@@ -369,7 +369,7 @@ void WinscwToolChainConfigWidget::handleCompilerPathUpdate()
void WinscwToolChainConfigWidget::makeDirty()
{
emit dirty(toolChain());
emit dirty();
}
// --------------------------------------------------------------------------
......
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