diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-06-10 11:39:41 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-06-11 08:41:01 +0000 |
commit | 5a2459d1e19d9e8d62b6f8b7e0b41bd578fb7617 (patch) | |
tree | c3db38ec6c2455c42bf2160abf9ab1d0a5eae78b /src/plugins/mercurial | |
parent | 7c8d20ded74bbeab6249b81b34f7078f3f385a81 (diff) | |
download | qt-creator-5a2459d1e19d9e8d62b6f8b7e0b41bd578fb7617.tar.gz |
VcsBase: Make some slots protected and update users accordingly
Change-Id: If38be72e9037126b6b697c5064a07de29a2ef8e5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/mercurial')
-rw-r--r-- | src/plugins/mercurial/mercurialplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/mercurial/mercurialplugin.cpp b/src/plugins/mercurial/mercurialplugin.cpp index e9e70c4768..bedaa8adcf 100644 --- a/src/plugins/mercurial/mercurialplugin.cpp +++ b/src/plugins/mercurial/mercurialplugin.cpp @@ -231,7 +231,7 @@ void MercurialPlugin::createFileActions(const Core::Context &context) m_deleteAction = new ParameterAction(tr("Delete..."), tr("Delete \"%1\"..."), ParameterAction::EnabledWithParameter, this); command = Core::ActionManager::registerAction(m_deleteAction, Core::Id(Constants::DELETE), context); command->setAttribute(Core::Command::CA_UpdateText); - connect(m_deleteAction, SIGNAL(triggered()), this, SLOT(promptToDeleteCurrentFile())); + connect(m_deleteAction, &QAction::triggered, this, &MercurialPlugin::promptToDeleteCurrentFile); m_mercurialContainer->addAction(command); m_commandLocator->appendCommand(command); @@ -411,7 +411,7 @@ void MercurialPlugin::createRepositoryActions(const Core::Context &context) m_createRepositoryAction = new QAction(tr("Create Repository..."), this); command = Core::ActionManager::registerAction(m_createRepositoryAction, Core::Id(Constants::CREATE_REPOSITORY), context); - connect(m_createRepositoryAction, SIGNAL(triggered()), this, SLOT(createRepository())); + connect(m_createRepositoryAction, &QAction::triggered, this, &MercurialPlugin::createRepository); m_mercurialContainer->addAction(command); } |