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:
@@ -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);
|
||||
|
||||
|
@@ -56,6 +56,8 @@ public:
|
||||
void setPlaceholder(Fn<QString()> placeholderFactory);
|
||||
QRect placeholderRect() const;
|
||||
|
||||
void finishAnimations();
|
||||
|
||||
void setTextMrg(const QMargins &textMrg);
|
||||
QRect getTextRect() const;
|
||||
|
||||
|
Reference in New Issue
Block a user