forked from qt-creator/qt-creator
Git: remote dialog improvements
* Add shortcuts * Add refresh button Change-Id: Idfe5c86459d654ea75fb90542eaa4d9cc1405d33 Reviewed-on: http://codereview.qt.nokia.com/220 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -103,6 +103,7 @@ RemoteDialog::RemoteDialog(QWidget *parent) :
|
||||
connect(m_ui->addButton, SIGNAL(clicked()), this, SLOT(addRemote()));
|
||||
connect(m_ui->fetchButton, SIGNAL(clicked()), this, SLOT(fetchFromRemote()));
|
||||
connect(m_ui->removeButton, SIGNAL(clicked()), this, SLOT(removeRemote()));
|
||||
connect(m_ui->refreshButton, SIGNAL(clicked()), this, SLOT(refreshRemotes()));
|
||||
}
|
||||
|
||||
RemoteDialog::~RemoteDialog()
|
||||
@@ -126,6 +127,11 @@ void RemoteDialog::refresh(const QString &repository, bool force)
|
||||
}
|
||||
}
|
||||
|
||||
void RemoteDialog::refreshRemotes()
|
||||
{
|
||||
refresh(m_remoteModel->workingDirectory(), true);
|
||||
}
|
||||
|
||||
void RemoteDialog::addRemote()
|
||||
{
|
||||
if (!m_addDialog)
|
||||
|
||||
Reference in New Issue
Block a user