forked from qt-creator/qt-creator
Vcs: Pimpl plugins
Essentially rename all *Plugin into *PluginPrivate, and pull out the actual IPlugin related pieces into new *Plugin classes. Shift the construction of the PluginPrivate to initialize(), following the general pattern. I tried to keep the patch as mechanical as possible, giving room to some obvious but less mechanical cleanup needs, that are intentionally left out of this here. Change-Id: Iac662bf73338f9f7669064ed67b960246875c23c Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -43,7 +43,7 @@ const char DIFF_SELECTED[] = "Vcs.DiffSelectedFiles";
|
||||
VcsSubmitEditorFactory::VcsSubmitEditorFactory
|
||||
(const VcsBaseSubmitEditorParameters *parameters,
|
||||
const EditorCreator &editorCreator,
|
||||
VcsBasePlugin *plugin)
|
||||
VcsBasePluginPrivate *plugin)
|
||||
: IEditorFactory(plugin), m_editorCreator(editorCreator)
|
||||
{
|
||||
setId(parameters->id);
|
||||
@@ -62,7 +62,7 @@ VcsSubmitEditorFactory::VcsSubmitEditorFactory
|
||||
plugin->commitDisplayName(), this);
|
||||
Command *command = ActionManager::registerAction(m_submitAction, SUBMIT, context);
|
||||
command->setAttribute(Command::CA_UpdateText);
|
||||
connect(m_submitAction, &QAction::triggered, plugin, &VcsBasePlugin::commitFromEditor);
|
||||
connect(m_submitAction, &QAction::triggered, plugin, &VcsBasePluginPrivate::commitFromEditor);
|
||||
|
||||
m_diffAction = new QAction(VcsBaseSubmitEditor::diffIcon(), tr("Diff &Selected Files"), this);
|
||||
ActionManager::registerAction(m_diffAction, DIFF_SELECTED, context);
|
||||
|
||||
Reference in New Issue
Block a user