2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Moved FloatAnimation->Animation, Animation->BasicAnimation.

This commit is contained in:
John Preston
2016-12-07 16:32:25 +03:00
parent 06ed7b8eaf
commit 47977009b8
90 changed files with 865 additions and 1139 deletions

View File

@@ -114,7 +114,7 @@ private:
using QueuedNotifications = QList<QueuedNotification>;
QueuedNotifications _queuedNotifications;
FloatAnimation _demoMasterOpacity;
Animation _demoMasterOpacity;
};
@@ -150,23 +150,20 @@ protected:
virtual void updateGeometry(int x, int y, int width, int height);
private:
void opacityAnimationCallback();
void destroyDelayed();
void moveByShift();
void hideAnimated(float64 duration, const anim::transition &func);
void step_opacity(float64 ms, bool timer);
void step_shift(float64 ms, bool timer);
bool _hiding = false;
bool _deleted = false;
float64 _opacityDuration;
anim::value a_opacity;
anim::transition a_func;
Animation _a_opacity;
QPoint _startPosition;
Direction _direction;
anim::value a_shift;
Animation _a_shift;
BasicAnimation _a_shift;
};
@@ -234,7 +231,7 @@ private:
bool _hideReplyButton = false;
bool _actionsVisible = false;
FloatAnimation a_actionsOpacity;
Animation a_actionsOpacity;
QPixmap _buttonsCache;
#if defined Q_OS_WIN && !defined Q_OS_WINRT