forked from qt-creator/qt-creator
Vcs: Rename VcsBasePluginPrivate to VersionControlBase
The classes derived from this had a dual role of implementing the version control interface (IVersionControl) and as the plugin pimpls. The name was focusing on the latter, but plugin pimpls are being phased out in the new 'setupFoo()' world, so only the version control interface part remains. Change-Id: I60396f1729c736bc6c9e4fca250a5926e9d60f51 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -152,7 +152,7 @@ public:
|
||||
QLineEdit *revisionLineEdit;
|
||||
};
|
||||
|
||||
class BazaarPluginPrivate final : public VcsBasePluginPrivate
|
||||
class BazaarPluginPrivate final : public VersionControlBase
|
||||
{
|
||||
public:
|
||||
BazaarPluginPrivate();
|
||||
@@ -183,7 +183,7 @@ public:
|
||||
// files changed signals according to the variant's type:
|
||||
// String -> repository, StringList -> files
|
||||
void changed(const QVariant &);
|
||||
void updateActions(VcsBase::VcsBasePluginPrivate::ActionState) final;
|
||||
void updateActions(VcsBase::VersionControlBase::ActionState) final;
|
||||
bool activateCommit() final;
|
||||
|
||||
// File menu action slots
|
||||
@@ -321,7 +321,7 @@ private:
|
||||
};
|
||||
|
||||
BazaarPluginPrivate::BazaarPluginPrivate()
|
||||
: VcsBasePluginPrivate(Context(Constants::BAZAAR_CONTEXT))
|
||||
: VersionControlBase(Context(Constants::BAZAAR_CONTEXT))
|
||||
{
|
||||
Context context(Constants::BAZAAR_CONTEXT);
|
||||
|
||||
@@ -850,7 +850,7 @@ bool BazaarPluginPrivate::activateCommit()
|
||||
return true;
|
||||
}
|
||||
|
||||
void BazaarPluginPrivate::updateActions(VcsBasePluginPrivate::ActionState as)
|
||||
void BazaarPluginPrivate::updateActions(VersionControlBase::ActionState as)
|
||||
{
|
||||
if (!enableMenuAction(as, m_menuAction)) {
|
||||
m_commandLocator->setEnabled(false);
|
||||
|
||||
Reference in New Issue
Block a user