MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / Show

Function Show

Telegram/SourceFiles/boxes/premium_preview_box.cpp:1257–1268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1255}
1256
1257void Show(
1258 std::shared_ptr<ChatHelpers::Show> show,
1259 const Descriptor &descriptor,
1260 const std::shared_ptr<Data::DocumentMedia> &media,
1261 QImage back) {
1262 auto box = Box(PreviewBox, show, descriptor, media, back);
1263 const auto raw = box.data();
1264 show->showBox(std::move(box));
1265 if (descriptor.shownCallback) {
1266 descriptor.shownCallback(raw);
1267 }
1268}
1269
1270void Show(std::shared_ptr<ChatHelpers::Show> show, QImage back) {
1271 auto &list = Preloads();

Callers 3

ShowStickerPreviewBoxFunction · 0.70
ShowPremiumPreviewBoxFunction · 0.70
ShowPremiumPreviewToBuyFunction · 0.70

Calls 15

DoubledLimitsPreviewBoxFunction · 0.85
DecorateListPromoBoxFunction · 0.85
PreloadStickerFunction · 0.85
LimitGradientStopsFunction · 0.85
premiumPossibleMethod · 0.80
setStopsMethod · 0.80
BoxClass · 0.50
QImageClass · 0.50
QPainterClass · 0.50
RoundFunction · 0.50

Tested by

no test coverage detected