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

Emoji display added to sticker preview. Reading featured sticker sets.

Reading featured sticker sets one by one while scrolling through them,
only when the row was fully visible and the image was already loaded.
This commit is contained in:
John Preston
2016-09-10 23:54:59 +03:00
parent ff657347b8
commit 8419a56e10
15 changed files with 418 additions and 164 deletions

View File

@@ -133,7 +133,6 @@ class MediaPreviewWidget : public TWidget {
Q_OBJECT
public:
MediaPreviewWidget(QWidget *parent);
void paintEvent(QPaintEvent *e);
@@ -148,10 +147,10 @@ public:
~MediaPreviewWidget();
private:
QSize currentDimensions() const;
QPixmap currentImage() const;
void startShow();
void fillEmojiString();
void resetGifAndCache();
anim::fvalue a_shown;
@@ -163,6 +162,9 @@ private:
return (!_gif || _gif == Media::Clip::BadReader) ? false : true;
}
int _emojiSize;
QList<EmojiPtr> _emojiList;
void clipCallback(Media::Clip::Notification notification);
enum CacheStatus {