summaryrefslogtreecommitdiff
path: root/src/plugins/bazaar/optionspage.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-01-23 17:22:05 +0100
committerhjk <hjk@qt.io>2020-01-24 09:47:28 +0000
commit1cd936c53145f520fb9a3817a6548d9d25c399f0 (patch)
tree2c1cc9c375b986b5d9a7abf3f982781256ae612d /src/plugins/bazaar/optionspage.cpp
parent01e4f573e812c9c855a11d0cb199f9d9bed8de49 (diff)
downloadqt-creator-1cd936c53145f520fb9a3817a6548d9d25c399f0.tar.gz
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>
Diffstat (limited to 'src/plugins/bazaar/optionspage.cpp')
-rw-r--r--src/plugins/bazaar/optionspage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/bazaar/optionspage.cpp b/src/plugins/bazaar/optionspage.cpp
index 1f890b4f22..dbd72f9110 100644
--- a/src/plugins/bazaar/optionspage.cpp
+++ b/src/plugins/bazaar/optionspage.cpp
@@ -54,7 +54,7 @@ private:
void OptionsPageWidget::apply()
{
- VcsBaseClientSettings s = BazaarPlugin::instance()->client()->settings();
+ VcsBaseClientSettings s = BazaarPluginPrivate::instance()->client()->settings();
s.setValue(BazaarSettings::binaryPathKey, m_ui.commandChooser->rawPath());
s.setValue(BazaarSettings::userNameKey, m_ui.defaultUsernameLineEdit->text().trimmed());
s.setValue(BazaarSettings::userEmailKey, m_ui.defaultEmailLineEdit->text().trimmed());
@@ -68,7 +68,7 @@ void OptionsPageWidget::apply()
}
OptionsPageWidget::OptionsPageWidget(Core::IVersionControl *control)
- : m_control(control), m_client(BazaarPlugin::instance()->client())
+ : m_control(control), m_client(BazaarPluginPrivate::instance()->client())
{
m_ui.setupUi(this);
m_ui.commandChooser->setExpectedKind(Utils::PathChooser::ExistingCommand);