forked from qt-creator/qt-creator
Maemo: Allow SSH password to be displayed to the user.
Task-number: QTCREATORBUG-1961 Reviewed-by: kh1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user