2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Replace NewAvatarButton with UserpicButton.

This new control should also replace PeerAvatarButton and
Profile::UserpicButton and deliver all the best of those three.
This commit is contained in:
John Preston
2017-11-13 16:02:53 +04:00
parent 3deea14559
commit 3d37ac9235
21 changed files with 525 additions and 257 deletions

View File

@@ -116,6 +116,10 @@ public:
finishPrepare();
}
Window::Controller *controller() {
return getDelegate()->controller();
}
public slots:
void onScrollToY(int top, int bottom = -1);
@@ -124,10 +128,6 @@ public slots:
protected:
virtual void prepare() = 0;
Window::Controller *controller() {
return getDelegate()->controller();
}
void setLayerType(bool layerType) {
getDelegate()->setLayerType(layerType);
}