Maemo: Allow SSH password to be displayed to the user.

Task-number: QTCREATORBUG-1961
Reviewed-by: kh1
This commit is contained in:
ck
2010-07-28 16:12:49 +02:00
parent 16e9d050b8
commit 62e33d0e7a
3 changed files with 45 additions and 9 deletions

View File

@@ -218,6 +218,7 @@ void MaemoSettingsWidget::fillInValues()
m_ui->userLineEdit->setText(currentConfig().server.uname);
m_ui->pwdLineEdit->setText(currentConfig().server.pwd);
m_ui->keyFileLineEdit->setPath(currentConfig().server.privateKeyFile);
m_ui->showPasswordCheckBox->setChecked(false);
const bool isSimulator
= currentConfig().type == MaemoDeviceConfig::Simulator;
@@ -317,6 +318,12 @@ void MaemoSettingsWidget::keyFileEditingFinished()
currentConfig().server.privateKeyFile = m_ui->keyFileLineEdit->path();
}
void MaemoSettingsWidget::showPassword(bool showClearText)
{
m_ui->pwdLineEdit->setEchoMode(showClearText
? QLineEdit::Normal : QLineEdit::Password);
}
void MaemoSettingsWidget::testConfig()
{
QDialog *dialog = new MaemoConfigTestDialog(currentConfig(), this);