gl->addWidget(lab=new QLabel(tr("Hostkey:")),++lctr,0);
lab->setAlignment(Qt::AlignRight);
gl->addWidget(hostkey=new QLineEdit,lctr,1);
- gl->addWidget(lab=new QLabel(tr("Default Username:")),++lctr,0);
- lab->setAlignment(Qt::AlignRight);
- gl->addWidget(username=new QLineEdit,lctr,1);
+ gl->addWidget(lab=new QLabel(tr("Default Username:")),++lctr,0);
+ lab->setAlignment(Qt::AlignRight);
+ gl->addWidget(username=new QLineEdit,lctr,1);
+ gl->addWidget(lab=new QLabel(tr("Hint for Username:")),++lctr,0);
+ lab->setAlignment(Qt::AlignRight);
+ gl->addWidget(userhint=new QLineEdit,lctr,1);
gl->setRowStretch(++lctr,10);
gl->addLayout(hl=new QHBoxLayout,++lctr,0,1,2);
proxyport->setEnabled(useproxy->isChecked());
proxyuser->setEnabled(useproxy->isChecked());
proxypass->setEnabled(useproxy->isChecked());
- username->setText(set.value("username").toString());
+ username->setText(set.value("username").toString());
+ userhint->setText(set.value("usernamehint").toString());
sslexcept=new MSslExceptions(dataDir+"/profile."+key+"/sslexceptions.xml");
sslFillModel();
abiscript->setChecked(set.value("script/allowbuiltin",true).toBool());
set.setValue("proxyport",proxyport->value());
set.setValue("proxyuser",proxyuser->text());
set.setValue("proxypass",proxypass->text());
- set.setValue("username",username->text());
+ set.setValue("username",username->text());
+ set.setValue("usernamehint",userhint->text());
QDir(MApplication::dataDir()).mkdir("profile."+key);
if(sslexcept)sslexcept->savesslexcept();
set.setValue("script/allowbuiltin",abiscript->isChecked());
private:
QCheckBox*useproxy,*abiscript,*ausscript,*asrscript;
QLineEdit*hostname,*hostkey,*serverurl,*proxyname,*username,
- *proxyuser,*proxypass,*usrscript;
+ *userhint,*proxyuser,*proxypass,*usrscript;
QSpinBox*proxyport,*pbiscript,*pusscript,*psrscript;
QListView*profiles;
QStandardItemModel*profilemodel,*sslmodel;