shifted isUsernameEditingAllowed to qml from c++
This commit is contained in:
parent
9b5a287d14
commit
e09e587796
3 changed files with 14 additions and 28 deletions
|
|
@ -270,8 +270,6 @@ UserProfile::changeUsername(QString username)
|
|||
err->matrix_error.error);
|
||||
});
|
||||
}
|
||||
|
||||
allowUsernameEditing(false);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -290,19 +288,6 @@ UserProfile::unverify(QString device)
|
|||
cache::markDeviceUnverified(userid_.toStdString(), device.toStdString());
|
||||
}
|
||||
|
||||
void
|
||||
UserProfile::allowUsernameEditing(bool allow)
|
||||
{
|
||||
usernameEditing = allow;
|
||||
emit usernameEditingChanged();
|
||||
}
|
||||
|
||||
bool
|
||||
UserProfile::isUsernameEditingAllowed() const
|
||||
{
|
||||
return usernameEditing;
|
||||
}
|
||||
|
||||
void
|
||||
UserProfile::setGlobalUsername(const QString &globalUser)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue