Commit 9e937b59 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Remove unused parameter

Reviewed-by: dt
parent 12b0933d
......@@ -423,8 +423,8 @@ EnvironmentWidget::EnvironmentWidget(QWidget *parent, QWidget *additionalDetails
this, SLOT(removeEnvironmentButtonClicked()));
connect(m_unsetButton, SIGNAL(clicked(bool)),
this, SLOT(unsetEnvironmentButtonClicked()));
connect(m_environmentTreeView->selectionModel(), SIGNAL(currentChanged(QModelIndex, QModelIndex)),
this, SLOT(environmentCurrentIndexChanged(QModelIndex, QModelIndex)));
connect(m_environmentTreeView->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
this, SLOT(environmentCurrentIndexChanged(QModelIndex)));
connect(m_model, SIGNAL(userChangesChanged()), this, SLOT(updateSummaryText()));
}
......@@ -488,7 +488,7 @@ void EnvironmentWidget::updateSummaryText()
void EnvironmentWidget::updateButtons()
{
environmentCurrentIndexChanged(m_environmentTreeView->currentIndex(), QModelIndex());
environmentCurrentIndexChanged(m_environmentTreeView->currentIndex());
}
void EnvironmentWidget::editEnvironmentButtonClicked()
......@@ -523,9 +523,8 @@ void EnvironmentWidget::unsetEnvironmentButtonClicked()
updateButtons();
}
void EnvironmentWidget::environmentCurrentIndexChanged(const QModelIndex &current, const QModelIndex &previous)
void EnvironmentWidget::environmentCurrentIndexChanged(const QModelIndex &current)
{
Q_UNUSED(previous)
if (current.isValid()) {
m_editButton->setEnabled(true);
const QString &name = m_model->indexToVariable(current);
......
......@@ -121,7 +121,7 @@ private slots:
void addEnvironmentButtonClicked();
void removeEnvironmentButtonClicked();
void unsetEnvironmentButtonClicked();
void environmentCurrentIndexChanged(const QModelIndex &current, const QModelIndex &previous);
void environmentCurrentIndexChanged(const QModelIndex &current);
void updateSummaryText();
void renamedVariable(const QString &name);
......
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