diff options
author | Montel Laurent <laurent.montel@kdab.com> | 2015-02-09 10:07:20 +0100 |
---|---|---|
committer | Laurent Montel <laurent.montel@kdab.com> | 2015-02-09 16:15:04 +0000 |
commit | 250cc0640b99c311c54d6200bc4f91b9f773d4fe (patch) | |
tree | 9d3e35948a7ccd08a9df0ad950f7ee7f2d6d9cfa /src/plugins/git/gitsubmiteditorwidget.cpp | |
parent | 478914a9cecc70fb2c7fb6b4c5feb2010666d4f0 (diff) |
Port to new connect api
Change-Id: Ifa29f380789c28cefda5dfdf497df42163fb2f94
Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/git/gitsubmiteditorwidget.cpp')
-rw-r--r-- | src/plugins/git/gitsubmiteditorwidget.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/git/gitsubmiteditorwidget.cpp b/src/plugins/git/gitsubmiteditorwidget.cpp index 88335a121b..e5379aecf9 100644 --- a/src/plugins/git/gitsubmiteditorwidget.cpp +++ b/src/plugins/git/gitsubmiteditorwidget.cpp @@ -58,10 +58,10 @@ GitSubmitEditorWidget::GitSubmitEditorWidget() : m_emailValidator = new QRegExpValidator(QRegExp(QLatin1String("[^@ ]+@[^@ ]+\\.[a-zA-Z]+")), this); - connect(m_gitSubmitPanelUi.authorLineEdit, SIGNAL(textChanged(QString)), - this, SLOT(authorInformationChanged())); - connect(m_gitSubmitPanelUi.emailLineEdit, SIGNAL(textChanged(QString)), - this, SLOT(authorInformationChanged())); + connect(m_gitSubmitPanelUi.authorLineEdit, &QLineEdit::textChanged, + this, &GitSubmitEditorWidget::authorInformationChanged); + connect(m_gitSubmitPanelUi.emailLineEdit, &QLineEdit::textChanged, + this, &GitSubmitEditorWidget::authorInformationChanged); } void GitSubmitEditorWidget::setPanelInfo(const GitSubmitEditorPanelInfo &info) @@ -99,7 +99,8 @@ void GitSubmitEditorWidget::initialize(CommitType commitType, logChangeGroupBox->setLayout(logChangeLayout); m_logChangeWidget = new LogChangeWidget; m_logChangeWidget->init(repository); - connect(m_logChangeWidget, SIGNAL(activated(QString)), this, SIGNAL(show(QString))); + connect(m_logChangeWidget, &LogChangeWidget::activated, + this, &GitSubmitEditorWidget::show); logChangeLayout->addWidget(m_logChangeWidget); insertTopWidget(logChangeGroupBox); m_gitSubmitPanelUi.editGroup->hide(); |