2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Display a userpic placeholder in the call panel.

This commit is contained in:
John Preston
2017-05-12 17:33:30 +03:00
parent 5fe75fbd5f
commit 7593be4361
3 changed files with 45 additions and 16 deletions

View File

@@ -244,6 +244,7 @@ public:
void paint(Painter &p, int x, int y, int outerWidth, int size) const;
void paintRounded(Painter &p, int x, int y, int outerWidth, int size) const;
void paintSquare(Painter &p, int x, int y, int outerWidth, int size) const;
QPixmap generate(int size);
StorageKey uniqueKey() const;
@@ -345,6 +346,7 @@ public:
paintUserpic(p, rtl() ? (w - x - size) : x, y, size);
}
void paintUserpicRounded(Painter &p, int x, int y, int size) const;
void paintUserpicSquare(Painter &p, int x, int y, int size) const;
void loadUserpic(bool loadFirst = false, bool prior = true) {
_userpic->load(loadFirst, prior);
}