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

Method grabForSlideAnimation

Telegram/SourceFiles/mainwindow.cpp:171–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171QPixmap MainWindow::grabForSlideAnimation() {
172 const auto body = bodyWidget();
173 return body->size().isEmpty() ? QPixmap() : Ui::GrabWidget(body);
174}
175
176void MainWindow::preventOrInvoke(Fn<void()> callback) {
177 if (_main && _main->preventsCloseSection(callback)) {

Callers 1

showAccountMethod · 0.80

Calls 2

isEmptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected