forked from qt-creator/qt-creator
Git: Partially move plugin pimpl to .cpp
Same procedure as for ClearCase. Unfortuately, some deep accesses are not easy to get rid of. Make them available by static functions in the plugin itself. Definitely not the favorite setup, but allows to proceed with the QObject removals. Change-Id: Id85ed07bc7a6c1c053431a14dd7f68892f7ebea0 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -49,7 +49,7 @@ class RemoteAdditionDialog : public QDialog
|
||||
{
|
||||
public:
|
||||
RemoteAdditionDialog(const QStringList &remoteNames) :
|
||||
m_invalidRemoteNameChars(GitPluginPrivate::invalidBranchAndRemoteNamePattern()),
|
||||
m_invalidRemoteNameChars(GitPlugin::invalidBranchAndRemoteNamePattern()),
|
||||
m_remoteNames(remoteNames)
|
||||
{
|
||||
m_ui.setupUi(this);
|
||||
@@ -157,7 +157,7 @@ void RemoteDialog::refresh(const QString &repository, bool force)
|
||||
if (m_remoteModel->workingDirectory() == repository && !force)
|
||||
return;
|
||||
// Refresh
|
||||
m_ui->repositoryLabel->setText(GitPluginPrivate::msgRepositoryLabel(repository));
|
||||
m_ui->repositoryLabel->setText(GitPlugin::msgRepositoryLabel(repository));
|
||||
if (repository.isEmpty()) {
|
||||
m_remoteModel->clear();
|
||||
} else {
|
||||
@@ -205,7 +205,7 @@ void RemoteDialog::pushToRemote()
|
||||
|
||||
const int row = indexList.at(0).row();
|
||||
const QString remoteName = m_remoteModel->remoteName(row);
|
||||
GitPluginPrivate::client()->push(m_remoteModel->workingDirectory(), {remoteName});
|
||||
GitPlugin::client()->push(m_remoteModel->workingDirectory(), {remoteName});
|
||||
}
|
||||
|
||||
void RemoteDialog::fetchFromRemote()
|
||||
@@ -216,7 +216,7 @@ void RemoteDialog::fetchFromRemote()
|
||||
|
||||
int row = indexList.at(0).row();
|
||||
const QString remoteName = m_remoteModel->remoteName(row);
|
||||
GitPluginPrivate::client()->fetch(m_remoteModel->workingDirectory(), remoteName);
|
||||
GitPlugin::client()->fetch(m_remoteModel->workingDirectory(), remoteName);
|
||||
}
|
||||
|
||||
void RemoteDialog::updateButtonState()
|
||||
|
||||
Reference in New Issue
Block a user