mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
New profile cover actions by buttons done.
Two new types of Observers: image loaded and async file dialog.
This commit is contained in:
@@ -38,7 +38,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *e) {
|
||||
void paintEvent(QPaintEvent *e) override {
|
||||
Painter p(this);
|
||||
|
||||
p.fillRect(e->rect(), st::profileBg);
|
||||
@@ -48,6 +48,11 @@ protected:
|
||||
p.setPen(st::profileTopBarBackFg);
|
||||
p.drawTextLeft(st::profileTopBarBackPosition.x(), st::profileTopBarBackPosition.y(), width(), lang(lng_menu_back));
|
||||
}
|
||||
void onStateChanged(int oldState, ButtonStateChangeSource source) override {
|
||||
if ((_state & Button::StateDown) && !(oldState & Button::StateDown)) {
|
||||
emit clicked();
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
|
Reference in New Issue
Block a user