Git: Proliferate FilePath use in GerritModel a bit

Plus some code cosmetics.

Change-Id: Idc07e881c09cbc7347396ef1bb60cce00539250c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2021-08-12 08:23:23 +02:00
parent bbde6ac9bf
commit 632b725821
8 changed files with 58 additions and 58 deletions

View File

@@ -124,8 +124,8 @@ GerritParameters GerritOptionsWidget::parameters() const
static_cast<unsigned short>(m_portSpinBox->value()),
m_userLineEdit->text().trimmed(),
GerritServer::Ssh);
result.ssh = m_sshChooser->filePath().toString();
result.curl = m_curlChooser->filePath().toString();
result.ssh = m_sshChooser->filePath();
result.curl = m_curlChooser->filePath();
result.https = m_httpsCheckBox->isChecked();
return result;
}
@@ -134,8 +134,8 @@ void GerritOptionsWidget::setParameters(const GerritParameters &p)
{
m_hostLineEdit->setText(p.server.host);
m_userLineEdit->setText(p.server.user.userName);
m_sshChooser->setPath(p.ssh);
m_curlChooser->setPath(p.curl);
m_sshChooser->setFilePath(p.ssh);
m_curlChooser->setFilePath(p.curl);
m_portSpinBox->setValue(p.server.port);
m_httpsCheckBox->setChecked(p.https);
}