aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/projectintropage.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <[email protected]>2015-03-05 22:00:05 +0200
committerhjk <[email protected]>2015-03-06 13:47:27 +0000
commit329c493764cae50c0db341dbe5b63df60f3ca2d3 (patch)
treeffa33e70e15b32b98540f427e1b1d1856985b39d /src/libs/utils/projectintropage.cpp
parent0c5dac717e7ff554a9d565800bef6f040875fb5e (diff)
Utils: Modernize connections
Diffstat (limited to 'src/libs/utils/projectintropage.cpp')
-rw-r--r--src/libs/utils/projectintropage.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/libs/utils/projectintropage.cpp b/src/libs/utils/projectintropage.cpp
index 5769afe7636..028789981ca 100644
--- a/src/libs/utils/projectintropage.cpp
+++ b/src/libs/utils/projectintropage.cpp
@@ -93,12 +93,19 @@ ProjectIntroPage::ProjectIntroPage(QWidget *parent) :
d->m_ui.projectComboBox->setVisible(d->m_forceSubProject);
d->m_ui.pathChooser->setDisabled(d->m_forceSubProject);
d->m_ui.projectsDirectoryCheckBox->setDisabled(d->m_forceSubProject);
- connect(d->m_ui.pathChooser, SIGNAL(changed(QString)), this, SLOT(slotChanged()));
- connect(d->m_ui.nameLineEdit, SIGNAL(textChanged(QString)), this, SLOT(slotChanged()));
- connect(d->m_ui.pathChooser, SIGNAL(validChanged()), this, SLOT(slotChanged()));
- connect(d->m_ui.pathChooser, SIGNAL(returnPressed()), this, SLOT(slotActivated()));
- connect(d->m_ui.nameLineEdit, SIGNAL(validReturnPressed()), this, SLOT(slotActivated()));
- connect(d->m_ui.projectComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(slotChanged()));
+ connect(d->m_ui.pathChooser, &PathChooser::changed,
+ this, &ProjectIntroPage::slotChanged);
+ connect(d->m_ui.nameLineEdit, &QLineEdit::textChanged,
+ this, &ProjectIntroPage::slotChanged);
+ connect(d->m_ui.pathChooser, &PathChooser::validChanged,
+ this, &ProjectIntroPage::slotChanged);
+ connect(d->m_ui.pathChooser, &PathChooser::returnPressed,
+ this, &ProjectIntroPage::slotActivated);
+ connect(d->m_ui.nameLineEdit, &FancyLineEdit::validReturnPressed,
+ this, &ProjectIntroPage::slotActivated);
+ connect(d->m_ui.projectComboBox,
+ static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
+ this, &ProjectIntroPage::slotChanged);
setProperty(SHORT_TITLE_PROPERTY, tr("Location"));
registerFieldWithName(QLatin1String("Path"), d->m_ui.pathChooser, "path", SIGNAL(pathChanged(QString)));