Add geometry animation on emoji picker
This commit is contained in:
parent
992af5611b
commit
c470e49aa9
2 changed files with 28 additions and 9 deletions
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include <QFrame>
|
||||
#include <QGraphicsOpacityEffect>
|
||||
#include <QParallelAnimationGroup>
|
||||
#include <QPropertyAnimation>
|
||||
#include <QScrollArea>
|
||||
#include <QWidget>
|
||||
|
|
@ -47,13 +48,22 @@ protected:
|
|||
private:
|
||||
void showEmojiCategory(const EmojiCategory *category);
|
||||
|
||||
QPropertyAnimation *animation_;
|
||||
QPropertyAnimation *opacity_anim_;
|
||||
QPropertyAnimation *size_anim_;
|
||||
QGraphicsOpacityEffect *opacity_;
|
||||
QParallelAnimationGroup *animation_;
|
||||
|
||||
EmojiProvider emoji_provider_;
|
||||
|
||||
QScrollArea *scroll_area_;
|
||||
|
||||
// Panel dimensions.
|
||||
const int WIDTH = 370;
|
||||
const int HEIGHT = 350;
|
||||
|
||||
const int ANIMATION_DURATION = 100;
|
||||
const int ANIMATION_OFFSET = 50;
|
||||
|
||||
const int category_icon_size_ = 20;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue