From 4f0db0751bea01cefff87cdedb9a0ba8fa40e083 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Fri, 31 Oct 2014 13:12:44 +0100 Subject: Remove proxy username/password in settings dialog Change-Id: Id769f7a0453505d53419e80aea0deb7be6f55b79 Reviewed-by: Karsten Heimrich --- src/sdk/settingsdialog.cpp | 10 +- src/sdk/settingsdialog.ui | 545 +++++++++++---------------------------------- 2 files changed, 127 insertions(+), 428 deletions(-) (limited to 'src/sdk') diff --git a/src/sdk/settingsdialog.cpp b/src/sdk/settingsdialog.cpp index a4b958c1c..3281cc45d 100644 --- a/src/sdk/settingsdialog.cpp +++ b/src/sdk/settingsdialog.cpp @@ -222,16 +222,10 @@ SettingsDialog::SettingsDialog(PackageManagerCore *core, QWidget *parent) const QNetworkProxy &ftpProxy = settings.ftpProxy(); m_ui->m_ftpProxy->setText(ftpProxy.hostName()); m_ui->m_ftpProxyPort->setValue(ftpProxy.port()); - m_ui->m_ftpProxyUser->setText(ftpProxy.user()); - m_ui->m_ftpProxyPass->setText(ftpProxy.password()); - m_ui->m_ftpProxyNeedsAuth->setChecked(!ftpProxy.user().isEmpty() | !ftpProxy.password().isEmpty()); const QNetworkProxy &httpProxy = settings.httpProxy(); m_ui->m_httpProxy->setText(httpProxy.hostName()); m_ui->m_httpProxyPort->setValue(httpProxy.port()); - m_ui->m_httpProxyUser->setText(httpProxy.user()); - m_ui->m_httpProxyPass->setText(httpProxy.password()); - m_ui->m_httpProxyNeedsAuth->setChecked(!httpProxy.user().isEmpty() | !httpProxy.password().isEmpty()); connect(m_ui->m_addRepository, SIGNAL(clicked()), this, SLOT(addRepository())); connect(m_ui->m_showPasswords, SIGNAL(clicked()), this, SLOT(updatePasswords())); @@ -284,12 +278,12 @@ void SettingsDialog::accept() if (newSettings.proxyType() == Settings::UserDefinedProxy) { // update ftp proxy settings newSettings.setFtpProxy(QNetworkProxy(QNetworkProxy::HttpProxy, m_ui->m_ftpProxy->text(), - m_ui->m_ftpProxyPort->value(), m_ui->m_ftpProxyUser->text(), m_ui->m_ftpProxyPass->text())); + m_ui->m_ftpProxyPort->value())); settingsChanged |= (settings.ftpProxy() != newSettings.ftpProxy()); // update http proxy settings newSettings.setHttpProxy(QNetworkProxy(QNetworkProxy::HttpProxy, m_ui->m_httpProxy->text(), - m_ui->m_httpProxyPort->value(), m_ui->m_httpProxyUser->text(), m_ui->m_httpProxyPass->text())); + m_ui->m_httpProxyPort->value())); settingsChanged |= (settings.httpProxy() != newSettings.httpProxy()); } diff --git a/src/sdk/settingsdialog.ui b/src/sdk/settingsdialog.ui index d3ca959a6..3683f3cd1 100644 --- a/src/sdk/settingsdialog.ui +++ b/src/sdk/settingsdialog.ui @@ -56,253 +56,118 @@ - - - 0 - - - 0 - - - 0 - - - - - - - - - false - - - HTTP proxy: - - - - - - - false - - - - - - - false - - - Port: - - - - - - - false - - - 65535 - - - - - - - - - false - - - HTTP proxy requires authentication - - - - - - - false - - - - 0 - - - 0 - - - 0 - - - - - false - - - Username: - - - - - - - false - - - - - - - false - - - Password: - - - - - - - false - - - QLineEdit::Password - - - - - - - + + + + + false + + + HTTP proxy: + + - - - - Qt::Vertical + + + + false - - QSizePolicy::Fixed + + + + + + false - - - 10 - 10 - + + Port: - + + + + + + false + + + 65535 + + - - - - - - - - false - - - FTP proxy: - - - - - - - false - - - - - - - false - - - Port: - - - - - - - false - - - 65535 - - - - - - - - - false - - - FTP proxy requires authentication - - - - - - - false - - - - 0 - - - 0 - - - 0 - - - - - false - - - Username: - - - - - - - false - - - - - - - false - - - Password: - - - - - - - false - - - QLineEdit::Password - - - - - - - + + + + false + + + + 0 + + + 0 + + + 0 + + + - + + + + false + + + FTP proxy: + + + + + + + false + + + + + + + false + + + Port: + + + + + + + false + + + 65535 + + + + + + + false + + + + 0 + + + 0 + + + 0 + + + + + Qt::Vertical @@ -475,22 +340,6 @@ - - m_manualProxySettings - toggled(bool) - m_httpProxyPortLabel - setEnabled(bool) - - - 349 - 78 - - - 347 - 96 - - - m_manualProxySettings toggled(bool) @@ -510,32 +359,16 @@ m_manualProxySettings toggled(bool) - m_ftpProxyLabel - setEnabled(bool) - - - 61 - 76 - - - 109 - 243 - - - - - m_manualProxySettings - toggled(bool) - m_ftpProxy + m_httpProxyPortLabel setEnabled(bool) - 204 + 349 78 - 203 - 248 + 347 + 96 @@ -558,48 +391,48 @@ m_manualProxySettings toggled(bool) - m_ftpProxyPort + m_ftpProxyLabel setEnabled(bool) - 406 - 78 + 61 + 76 - 380 - 252 + 109 + 243 m_manualProxySettings toggled(bool) - m_httpProxyNeedsAuth + m_ftpProxy setEnabled(bool) - 53 - 75 + 204 + 78 - 100 - 129 + 203 + 248 m_manualProxySettings toggled(bool) - m_ftpProxyNeedsAuth + m_ftpProxyPort setEnabled(bool) - 88 - 74 + 406 + 78 - 95 - 274 + 380 + 252 @@ -635,133 +468,5 @@ - - m_ftpProxyNeedsAuth - toggled(bool) - m_ftpProxyUserLabel - setEnabled(bool) - - - 82 - 283 - - - 77 - 303 - - - - - m_ftpProxyNeedsAuth - toggled(bool) - m_ftpProxyUser - setEnabled(bool) - - - 180 - 284 - - - 170 - 304 - - - - - m_ftpProxyNeedsAuth - toggled(bool) - m_ftpProxyPass - setEnabled(bool) - - - 224 - 283 - - - 223 - 330 - - - - - m_ftpProxyNeedsAuth - toggled(bool) - m_ftpProxyPassLabel - setEnabled(bool) - - - 317 - 282 - - - 122 - 335 - - - - - m_httpProxyNeedsAuth - toggled(bool) - m_httpProxyUserLabel - setEnabled(bool) - - - 81 - 134 - - - 70 - 154 - - - - - m_httpProxyNeedsAuth - toggled(bool) - m_httpProxyPassLabel - setEnabled(bool) - - - 87 - 137 - - - 84 - 186 - - - - - m_httpProxyNeedsAuth - toggled(bool) - m_httpProxyUser - setEnabled(bool) - - - 183 - 135 - - - 182 - 154 - - - - - m_httpProxyNeedsAuth - toggled(bool) - m_httpProxyPass - setEnabled(bool) - - - 287 - 134 - - - 285 - 182 - - - -- cgit v1.2.3