2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 23:55:12 +00:00

Implement animated spoilers.

This commit is contained in:
John Preston
2022-09-17 00:23:27 +04:00
parent 4975254cc1
commit 749fb52113
291 changed files with 814 additions and 556 deletions

View File

@@ -45,6 +45,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/text/text_options.h"
#include "ui/text/text_utilities.h"
#include "ui/cached_round_corners.h"
#include "ui/painter.h"
#include "ui/ui_utility.h"
namespace Overview {
@@ -1234,7 +1235,7 @@ void Document::paint(Painter &p, const QRect &clip, TextSelection selection, con
paintCheckbox(p, { checkLeft, checkTop }, selected, context);
}
void Document::drawCornerDownload(Painter &p, bool selected, const PaintContext *context) const {
void Document::drawCornerDownload(QPainter &p, bool selected, const PaintContext *context) const {
if (dataLoaded()
|| _data->loadedInMediaCache()
|| !downloadInCorner()) {