2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Move Image and derived to ui/image.

This commit is contained in:
John Preston
2018-10-11 18:54:57 +03:00
parent d56a3d015b
commit 113f665295
48 changed files with 1917 additions and 1776 deletions

View File

@@ -165,17 +165,9 @@ public:
int x,
int y,
int size) const;
void loadUserpic(bool loadFirst = false, bool prior = true) {
_userpic->load(userpicPhotoOrigin(), loadFirst, prior);
}
bool userpicLoaded() const {
return _userpic->loaded();
}
bool useEmptyUserpic() const {
return _userpicLocation.isNull()
|| !_userpic
|| !_userpic->loaded();
}
void loadUserpic(bool loadFirst = false, bool prior = true);
bool userpicLoaded() const;
bool useEmptyUserpic() const;
StorageKey userpicUniqueKey() const;
void saveUserpic(const QString &path, int size) const;
void saveUserpicRounded(const QString &path, int size) const;