Commit 5e810504 authored by Tobias Hunger's avatar Tobias Hunger

Autotools: Use Qt5 style connects

* Get rid of "slots" from the headers

Change-Id: Ie12f5705a2ca92a431992a45f57193a72ea7032a
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 8b46136b
......@@ -242,10 +242,10 @@ AutogenStepConfigWidget::AutogenStepConfigWidget(AutogenStep *autogenStep) :
updateDetails();
connect(m_additionalArguments, SIGNAL(textChanged(QString)),
autogenStep, SLOT(setAdditionalArguments(QString)));
connect(autogenStep, SIGNAL(additionalArgumentsChanged(QString)),
this, SLOT(updateDetails()));
connect(m_additionalArguments, &QLineEdit::textChanged,
autogenStep, &AutogenStep::setAdditionalArguments);
connect(autogenStep, &AutogenStep::additionalArgumentsChanged,
this, &AutogenStepConfigWidget::updateDetails);
}
QString AutogenStepConfigWidget::displayName() const
......
......@@ -97,7 +97,6 @@ public:
QString additionalArguments() const;
QVariantMap toMap() const override;
public slots:
void setAdditionalArguments(const QString &list);
signals:
......@@ -134,10 +133,9 @@ public:
QString displayName() const override;
QString summaryText() const override;
private slots:
private:
void updateDetails();
private:
AutogenStep *m_autogenStep;
QString m_summaryText;
QLineEdit *m_additionalArguments;
......
......@@ -237,10 +237,10 @@ AutoreconfStepConfigWidget::AutoreconfStepConfigWidget(AutoreconfStep *autorecon
updateDetails();
connect(m_additionalArguments, SIGNAL(textChanged(QString)),
autoreconfStep, SLOT(setAdditionalArguments(QString)));
connect(autoreconfStep, SIGNAL(additionalArgumentsChanged(QString)),
this, SLOT(updateDetails()));
connect(m_additionalArguments, &QLineEdit::textChanged,
autoreconfStep, &AutoreconfStep::setAdditionalArguments);
connect(autoreconfStep, &AutoreconfStep::additionalArgumentsChanged,
this, &AutoreconfStepConfigWidget::updateDetails);
}
QString AutoreconfStepConfigWidget::displayName() const
......
......@@ -97,7 +97,6 @@ public:
QString additionalArguments() const;
QVariantMap toMap() const override;
public slots:
void setAdditionalArguments(const QString &list);
signals:
......@@ -134,10 +133,9 @@ public:
QString displayName() const override;
QString summaryText() const override;
private slots:
private:
void updateDetails();
private:
AutoreconfStep *m_autoreconfStep;
QString m_summaryText;
QLineEdit *m_additionalArguments;
......
......@@ -66,7 +66,8 @@ AutotoolsBuildSettingsWidget::AutotoolsBuildSettingsWidget(AutotoolsBuildConfigu
m_pathChooser->setPath(m_buildConfiguration->rawBuildDirectory().toString());
setDisplayName(tr("Autotools Manager"));
connect(bc, SIGNAL(environmentChanged()), this, SLOT(environmentHasChanged()));
connect(bc, &BuildConfiguration::environmentChanged,
this, &AutotoolsBuildSettingsWidget::environmentHasChanged);
}
void AutotoolsBuildSettingsWidget::buildDirectoryChanged()
......
......@@ -52,11 +52,10 @@ class AutotoolsBuildSettingsWidget : public ProjectExplorer::NamedWidget
public:
AutotoolsBuildSettingsWidget(AutotoolsBuildConfiguration *bc);
private slots:
private:
void buildDirectoryChanged();
void environmentHasChanged();
private:
Utils::PathChooser *m_pathChooser;
AutotoolsBuildConfiguration *m_buildConfiguration;
};
......
......@@ -64,10 +64,9 @@ class BuildPathPage : public QWizardPage
public:
explicit BuildPathPage(AutotoolsOpenProjectWizard *wizard);
private slots:
private:
void buildDirectoryChanged();
private:
Utils::PathChooser *m_pc;
};
......
......@@ -259,12 +259,12 @@ ConfigureStepConfigWidget::ConfigureStepConfigWidget(ConfigureStep *configureSte
updateDetails();
connect(m_additionalArguments, SIGNAL(textChanged(QString)),
configureStep, SLOT(setAdditionalArguments(QString)));
connect(configureStep, SIGNAL(additionalArgumentsChanged(QString)),
this, SLOT(updateDetails()));
connect(configureStep, SIGNAL(buildDirectoryChanged()),
this, SLOT(updateDetails()));
connect(m_additionalArguments, &QLineEdit::textChanged,
configureStep, &ConfigureStep::setAdditionalArguments);
connect(configureStep, &ConfigureStep::additionalArgumentsChanged,
this, &ConfigureStepConfigWidget::updateDetails);
connect(configureStep, &ConfigureStep::buildDirectoryChanged,
this, &ConfigureStepConfigWidget::updateDetails);
}
QString ConfigureStepConfigWidget::displayName() const
......
......@@ -96,7 +96,6 @@ public:
QString additionalArguments() const;
QVariantMap toMap() const override;
public slots:
void setAdditionalArguments(const QString &list);
void notifyBuildDirectoryChanged();
......@@ -135,10 +134,9 @@ public:
QString displayName() const override;
QString summaryText() const override;
private slots:
private:
void updateDetails();
private:
ConfigureStep *m_configureStep;
QString m_summaryText;
QLineEdit *m_additionalArguments;
......
......@@ -110,7 +110,6 @@ public:
*/
bool isCanceled() const;
public slots:
/**
* Cancels the parsing of the makefile. MakefileParser::hasError() will
* return true in this case.
......
......@@ -271,11 +271,12 @@ MakeStepConfigWidget::MakeStepConfigWidget(MakeStep *makeStep) :
updateDetails();
connect(m_additionalArguments, SIGNAL(textChanged(QString)),
makeStep, SLOT(setAdditionalArguments(QString)));
connect(makeStep, SIGNAL(additionalArgumentsChanged(QString)),
this, SLOT(updateDetails()));
connect(m_makeStep->project(), SIGNAL(environmentChanged()), this, SLOT(updateDetails()));
connect(m_additionalArguments, &QLineEdit::textChanged,
makeStep, &MakeStep::setAdditionalArguments);
connect(makeStep, &MakeStep::additionalArgumentsChanged,
this, &MakeStepConfigWidget::updateDetails);
connect(m_makeStep->project(), &Project::environmentChanged,
this, &MakeStepConfigWidget::updateDetails);
}
QString MakeStepConfigWidget::displayName() const
......
......@@ -97,7 +97,6 @@ public:
QString additionalArguments() const;
QVariantMap toMap() const override;
public slots:
void setAdditionalArguments(const QString &list);
signals:
......@@ -135,10 +134,9 @@ public:
QString displayName() const override;
QString summaryText() const override;
private slots:
private:
void updateDetails();
private:
MakeStep *m_makeStep;
QString m_summaryText;
QLineEdit *m_additionalArguments;
......
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