Allow the avatar to be changed

This Merge Request allows an avatar to be set through the userEditSheet
The parts in controller.cpp decode the url and check whether the image
is valid, through qimagereader.
This commit is contained in:
Arnav Rawat
2021-03-05 00:31:44 +00:00
committed by Carl Schwan
parent a9678b6fc3
commit b6787ae242
3 changed files with 85 additions and 17 deletions

View File

@@ -50,6 +50,8 @@ public:
Q_INVOKABLE void changePassword(Quotient::Connection *connection, const QString &currentPassword, const QString &newPassword);
Q_INVOKABLE bool setAvatar(Quotient::Connection *connection, const QUrl &avatarSource);
[[nodiscard]] int accountCount() const;
[[nodiscard]] static bool quitOnLastWindowClosed();