diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-11-19 16:48:37 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-11-23 14:48:09 +0000 |
commit | 7b3aa16dc665e3af788c1cff3945438c8a8abd05 (patch) | |
tree | 1179eeba2dffc19f58dfb4cda796e2a0f6095f5a /src/plugins/git/gitsubmiteditorwidget.cpp | |
parent | 8f8c1052a2ccec0d1bbcdcf94a0346ae3609a3e0 (diff) |
Git: Use Qt5-style connects
The heavy lifting was done by clazy.
Change-Id: I60dcd378419b92f96dc681921701c9231ef8ee57
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git/gitsubmiteditorwidget.cpp')
-rw-r--r-- | src/plugins/git/gitsubmiteditorwidget.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/git/gitsubmiteditorwidget.cpp b/src/plugins/git/gitsubmiteditorwidget.cpp index e0a33d07c0..19bfdfe888 100644 --- a/src/plugins/git/gitsubmiteditorwidget.cpp +++ b/src/plugins/git/gitsubmiteditorwidget.cpp @@ -108,8 +108,7 @@ void GitSubmitEditorWidget::initialize(CommitType commitType, logChangeGroupBox->setLayout(logChangeLayout); m_logChangeWidget = new LogChangeWidget; m_logChangeWidget->init(repository); - connect(m_logChangeWidget, &LogChangeWidget::activated, - this, &GitSubmitEditorWidget::show); + connect(m_logChangeWidget, &LogChangeWidget::commitActivated, this, &GitSubmitEditorWidget::show); logChangeLayout->addWidget(m_logChangeWidget); insertLeftWidget(logChangeGroupBox); m_gitSubmitPanelUi.editGroup->hide(); @@ -121,9 +120,12 @@ void GitSubmitEditorWidget::initialize(CommitType commitType, if (enablePush) { auto menu = new QMenu(this); - menu->addAction(tr("&Commit only"), this, SLOT(commitOnlySlot())); - menu->addAction(tr("Commit and &Push"), this, SLOT(commitAndPushSlot())); - menu->addAction(tr("Commit and Push to &Gerrit"), this, SLOT(commitAndPushToGerritSlot())); + connect(menu->addAction(tr("&Commit only")), &QAction::triggered, + this, &GitSubmitEditorWidget::commitOnlySlot); + connect(menu->addAction(tr("Commit and &Push")), &QAction::triggered, + this, &GitSubmitEditorWidget::commitAndPushSlot); + connect(menu->addAction(tr("Commit and Push to &Gerrit")), &QAction::triggered, + this, &GitSubmitEditorWidget::commitAndPushToGerritSlot); addSubmitButtonMenu(menu); } } |