2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Replaced mosaic drawing in InlineBots::Layout::Inner.

This commit is contained in:
23rd
2021-07-22 01:47:56 +03:00
committed by John Preston
parent 9699aeb1cd
commit 81c39af122
5 changed files with 101 additions and 283 deletions

View File

@@ -168,6 +168,7 @@ GifsListWidget::GifsListWidget(
, _api(&controller->session().mtp())
, _section(Section::Gifs)
, _updateInlineItems([=] { updateInlineItems(); })
, _mosaic(st::emojiPanWidth - st::inlineResultsLeft)
, _previewTimer([=] { showPreview(); }) {
setMouseTracking(true);
setAttribute(Qt::WA_OpaquePaintEvent);