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

Show folder using slide animation.

This commit is contained in:
John Preston
2019-04-24 14:15:10 +04:00
parent 6dd8f32f66
commit f56df0e1d9
9 changed files with 720 additions and 601 deletions

View File

@@ -997,6 +997,11 @@ QRect FlatInput::getTextRect() const {
return rect().marginsRemoved(_textMrg + QMargins(-2, -1, -2, -1));
}
void FlatInput::finishAnimations() {
_placeholderFocusedAnimation.stop();
_placeholderVisibleAnimation.stop();
}
void FlatInput::paintEvent(QPaintEvent *e) {
Painter p(this);

View File

@@ -56,6 +56,8 @@ public:
void setPlaceholder(Fn<QString()> placeholderFactory);
QRect placeholderRect() const;
void finishAnimations();
void setTextMrg(const QMargins &textMrg);
QRect getTextRect() const;