forked from blue/squawk
minor bugfix, start account editing feature
This commit is contained in:
parent
3c3e28b688
commit
16f96c4f2b
10 changed files with 102 additions and 23 deletions
|
@ -22,3 +22,17 @@ QMap<QString, QVariant> Account::value() const
|
|||
|
||||
return map;
|
||||
}
|
||||
|
||||
void Account::lockId()
|
||||
{
|
||||
m_ui->name->setReadOnly(true);;
|
||||
}
|
||||
|
||||
void Account::setData(const QMap<QString, QVariant>& data)
|
||||
{
|
||||
m_ui->login->setText(data.value("login").toString());
|
||||
m_ui->password->setText(data.value("password").toString());
|
||||
m_ui->server->setText(data.value("server").toString());
|
||||
m_ui->name->setText(data.value("name").toString());
|
||||
m_ui->resource->setText(data.value("resource").toString());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue