From fc2c55367099ca7bdeacd0d52ff6007f00a6ba72 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 23 Aug 2022 20:35:25 +0300 Subject: [PATCH] Allow querying ready state of custom emoji. --- ui/text/text_block.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/text/text_block.h b/ui/text/text_block.h index c55e59e..a974c42 100644 --- a/ui/text/text_block.h +++ b/ui/text/text_block.h @@ -185,6 +185,7 @@ public: using Context = CustomEmojiPaintContext; virtual void paint(QPainter &p, const Context &context) = 0; virtual void unload() = 0; + [[nodiscard]] virtual bool ready() = 0; };