diff options
Diffstat (limited to 'src/plugins/perforce')
-rw-r--r-- | src/plugins/perforce/perforceplugin.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/plugins/perforce/perforceplugin.cpp b/src/plugins/perforce/perforceplugin.cpp index b693ff5854..18d3a5793a 100644 --- a/src/plugins/perforce/perforceplugin.cpp +++ b/src/plugins/perforce/perforceplugin.cpp @@ -218,15 +218,15 @@ static const VCSBase::VCSBaseSubmitEditorParameters submitParameters = { static inline Core::Command *createSeparator(QObject *parent, Core::ActionManager *ami, - const char*id, - const QList<int> &globalcontext) + const char *id, + const Core::Context &globalcontext) { QAction *tmpaction = new QAction(parent); tmpaction->setSeparator(true); return ami->registerAction(tmpaction, id, globalcontext); } -bool PerforcePlugin::initialize(const QStringList & /* arguments */, QString * errorMessage) +bool PerforcePlugin::initialize(const QStringList & /* arguments */, QString *errorMessage) { typedef VCSBase::VCSEditorFactory<PerforceEditor> PerforceEditorFactory; typedef VCSBase::VCSSubmitEditorFactory<PerforceSubmitEditor> PerforceSubmitEditorFactory; @@ -267,12 +267,9 @@ bool PerforcePlugin::initialize(const QStringList & /* arguments */, QString * e mtools->addMenu(mperforce); m_menuAction = mperforce->menu()->menuAction(); - QList<int> globalcontext; - globalcontext << Core::Constants::C_GLOBAL_ID; - - QList<int> perforcesubmitcontext; - perforcesubmitcontext << Core::UniqueIDManager::instance()-> - uniqueIdentifier(Constants::PERFORCESUBMITEDITOR_CONTEXT); + Core::Context globalcontext(Core::Constants::C_GLOBAL_ID); + Core::Context perforcesubmitcontext( + Core::UniqueIDManager::instance()->uniqueIdentifier(Constants::PERFORCESUBMITEDITOR_CONTEXT)); Core::Command *command; |